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");