From a18313b44744b711a4b19495adc799f4b5da007c Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sat, 30 Apr 2022 00:02:49 -0400 Subject: [PATCH] kcm: Fix settings not being saved --- kcms/mobileshell/package/contents/ui/main.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kcms/mobileshell/package/contents/ui/main.qml b/kcms/mobileshell/package/contents/ui/main.qml index f8eefee1..9fca0166 100644 --- a/kcms/mobileshell/package/contents/ui/main.qml +++ b/kcms/mobileshell/package/contents/ui/main.qml @@ -42,8 +42,8 @@ KCM.SimpleKCM { description: i18n("Whether to have vibrations enabled in the shell.") checked: MobileShell.MobileShellSettings.vibrationsEnabled onCheckedChanged: { - if (checked != !MobileShell.MobileShellSettings.vibrationsEnabled) { - MobileShell.MobileShellSettings.vibrationsEnabled = !checked; + if (checked != MobileShell.MobileShellSettings.vibrationsEnabled) { + MobileShell.MobileShellSettings.vibrationsEnabled = checked; } } } @@ -53,8 +53,8 @@ KCM.SimpleKCM { description: i18n("If this is off, animations will be reduced as much as possible.") checked: MobileShell.MobileShellSettings.animationsEnabled onCheckedChanged: { - if (checked != !MobileShell.MobileShellSettings.animationsEnabled) { - MobileShell.MobileShellSettings.animationsEnabled = !checked; + if (checked != MobileShell.MobileShellSettings.animationsEnabled) { + MobileShell.MobileShellSettings.animationsEnabled = checked; } } }