mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
Fix view mode-specific settings not always applying
When the current view mode is different from the view mode for which settings were changed in Dolphin's settings dialog, those changes were sometimes not present when then changing the view mode of a view to the view mode for which settings were changed. This commit fixes this by always loading the settings for all view modes in the DolphinItemListView even if the view is currently using only one of those view modes.
This commit is contained in:
parent
57cdee5951
commit
f267544472
|
@ -77,8 +77,10 @@ void DolphinItemListView::setEnabledSelectionToggles(DolphinItemListView::Select
|
||||||
|
|
||||||
void DolphinItemListView::readSettings()
|
void DolphinItemListView::readSettings()
|
||||||
{
|
{
|
||||||
ViewModeSettings settings(itemLayout());
|
// We load the settings for all view modes now because we don't load them when the view mode changes.
|
||||||
settings.readConfig();
|
IconsModeSettings::self()->load();
|
||||||
|
CompactModeSettings::self()->load();
|
||||||
|
DetailsModeSettings::self()->load();
|
||||||
|
|
||||||
beginTransaction();
|
beginTransaction();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue