1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-04 17:30:55 +00:00

Set dockAction enabled according to settings

Panels are unlocked even they're set locked in settings at start of the app.
This sets panels locked according to the setting.

BUG:478117
This commit is contained in:
Akseli Lahtinen 2023-12-15 10:17:21 +00:00 committed by Méven Car
parent 2aa5477ccf
commit a5fb0524b5

View File

@ -64,7 +64,7 @@ void DolphinDockWidget::setLocked(bool lock)
m_dockTitleBar = new DolphinDockTitleBar(this);
}
setTitleBarWidget(m_dockTitleBar);
setFeatures(QDockWidget::NoDockWidgetFeatures);
setFeatures(QDockWidget::DockWidgetClosable);
} else {
setTitleBarWidget(nullptr);
setFeatures(DefaultDockWidgetFeatures);