kcm: Fix settings not being saved

This commit is contained in:
Devin Lin 2022-04-30 00:02:49 -04:00
parent 62e7dce24a
commit a18313b447

View file

@ -42,8 +42,8 @@ KCM.SimpleKCM {
description: i18n("Whether to have vibrations enabled in the shell.") description: i18n("Whether to have vibrations enabled in the shell.")
checked: MobileShell.MobileShellSettings.vibrationsEnabled checked: MobileShell.MobileShellSettings.vibrationsEnabled
onCheckedChanged: { onCheckedChanged: {
if (checked != !MobileShell.MobileShellSettings.vibrationsEnabled) { if (checked != MobileShell.MobileShellSettings.vibrationsEnabled) {
MobileShell.MobileShellSettings.vibrationsEnabled = !checked; MobileShell.MobileShellSettings.vibrationsEnabled = checked;
} }
} }
} }
@ -53,8 +53,8 @@ KCM.SimpleKCM {
description: i18n("If this is off, animations will be reduced as much as possible.") description: i18n("If this is off, animations will be reduced as much as possible.")
checked: MobileShell.MobileShellSettings.animationsEnabled checked: MobileShell.MobileShellSettings.animationsEnabled
onCheckedChanged: { onCheckedChanged: {
if (checked != !MobileShell.MobileShellSettings.animationsEnabled) { if (checked != MobileShell.MobileShellSettings.animationsEnabled) {
MobileShell.MobileShellSettings.animationsEnabled = !checked; MobileShell.MobileShellSettings.animationsEnabled = checked;
} }
} }
} }