Gui: implement option to disable overlay management

This commit is contained in:
wmayer
2023-10-14 12:59:10 +02:00
committed by wwmayer
parent 3f1ecf9141
commit 310c052134
5 changed files with 81 additions and 16 deletions

View File

@@ -230,6 +230,10 @@ void DlgSettingsGeneral::saveSettings()
ui->RecentFiles->onSave();
ui->EnableCursorBlinking->onSave();
ui->SplashScreen->onSave();
ui->ActivateOverlay->onSave();
if (property("ActivateOverlay").toBool() != ui->ActivateOverlay->isChecked()) {
requireRestart();
}
setRecentFileSize();
bool force = setLanguage();
@@ -297,6 +301,8 @@ void DlgSettingsGeneral::loadSettings()
ui->RecentFiles->onRestore();
ui->EnableCursorBlinking->onRestore();
ui->SplashScreen->onRestore();
ui->ActivateOverlay->onRestore();
setProperty("ActivateOverlay", ui->ActivateOverlay->isChecked());
// search for the language files
ParameterGrp::handle hGrp = WindowParameter::getDefaultParameter()->GetGroup("General");

View File

@@ -360,6 +360,25 @@ display the splash screen</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="Gui::PrefCheckBox" name="ActivateOverlay">
<property name="toolTip">
<string>Activate overlay handling of dock windows</string>
</property>
<property name="text">
<string>Activate overlay handling</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>ActivateOverlay</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>DockWindows</cstring>
</property>
</widget>
</item>
</layout>
</widget>
</item>