diff options
| author | Kai Uwe Broulik <[email protected]> | 2022-01-28 19:40:11 +0100 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2022-02-05 22:18:28 +0000 |
| commit | 0dac70d059551ad143b9bb9849efb28840b7ba4b (patch) | |
| tree | 0df2edcccbbe5d1696607994fe649db6427bd321 /src/dolphinmainwindow.cpp | |
| parent | f645e6b4b2053926bcea3f9ae6985a53b28caab1 (diff) | |
Hide "Places" section header when panels are unlocked
Avoids showing "Places" twice.
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 9b4ac64c9..166091ca7 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -912,6 +912,8 @@ void DolphinMainWindow::togglePanelLockState() } } + DolphinPlacesModelSingleton::instance().placesModel()->setPanelsLocked(newLockState); + GeneralSettings::setLockPanels(newLockState); } @@ -1814,6 +1816,8 @@ void DolphinMainWindow::setupDockWidgets() { const bool lock = GeneralSettings::lockPanels(); + DolphinPlacesModelSingleton::instance().placesModel()->setPanelsLocked(lock); + KDualAction* lockLayoutAction = actionCollection()->add<KDualAction>(QStringLiteral("lock_panels")); lockLayoutAction->setActiveText(i18nc("@action:inmenu Panels", "Unlock Panels")); lockLayoutAction->setActiveIcon(QIcon::fromTheme(QStringLiteral("object-unlocked"))); |
