mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 09:48:50 +00:00
kcm: Fix settings not being saved
This commit is contained in:
parent
62e7dce24a
commit
a18313b447
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue