From 78d96bd2009b8741564df4778b63d3091610dbd7 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 24 Mar 2024 23:22:16 +0900 Subject: Add GUI option to choose between standard and Ubuntu-style shutdown dialog. Signed-off-by: Michele Calgaro --- kcontrol/smserver/kcmsmserver.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kcontrol/smserver/kcmsmserver.cpp') diff --git a/kcontrol/smserver/kcmsmserver.cpp b/kcontrol/smserver/kcmsmserver.cpp index 5bf35dbac..3d165a577 100644 --- a/kcontrol/smserver/kcmsmserver.cpp +++ b/kcontrol/smserver/kcmsmserver.cpp @@ -94,6 +94,7 @@ void SMServerConfig::load(bool useDefaults ) c->setGroup("Logout"); dialog->showLogoutStatusDialog->setChecked(c->readBoolEntry("showLogoutStatusDlg", true)); + dialog->showUbuntuStyleDialog->setChecked(c->readBoolEntry("doUbuntuLogout", false)); dialog->showFadeAway->setChecked(c->readBoolEntry("doFadeaway", true)); dialog->showFancyFadeAway->setChecked(c->readBoolEntry("doFancyLogout", true)); dialog->showFancyFadeAway->setEnabled(dialog->confirmLogoutCheck->isChecked() && dialog->showFadeAway->isChecked()), @@ -126,6 +127,7 @@ void SMServerConfig::save() c->writeEntry("excludeApps", dialog->excludeLineedit->text()); c->setGroup("Logout"); c->writeEntry( "showLogoutStatusDlg", dialog->showLogoutStatusDialog->isChecked()); + c->writeEntry( "doUbuntuLogout", dialog->showUbuntuStyleDialog->isChecked()); c->writeEntry( "doFadeaway", dialog->showFadeAway->isChecked()); c->writeEntry( "doFancyLogout", dialog->showFancyFadeAway->isChecked()); c->sync(); -- cgit v1.2.1