[kcmkwin/kwindesktop] Fix error in desktop layout indicator initial state

Summary:
kcm.osdTextOnly is the inverse of "show desktop layout indicators"

The save was inversed, the load was not.

Also port from onCheckedChanged to onToggled as that's emitted only on
user changes and not on binding re-evaluation.

BUG: 403150

Test Plan:
Toggled it
Reopened KCM
Checked kwinrc

Reviewers: #kwin, ngraham

Reviewed By: ngraham

Subscribers: ngraham, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D18272
icc-effect-5.17.5
David Edmundson 2019-01-15 21:52:28 +00:00
parent de04d362da
commit 7c15bc7765
1 changed files with 3 additions and 3 deletions

View File

@ -253,7 +253,7 @@ ScrollViewKCM {
checked: kcm.osdEnabled
onCheckedChanged: kcm.osdEnabled = checked
onToggled: kcm.osdEnabled = checked
}
QtControls.SpinBox {
@ -287,9 +287,9 @@ ScrollViewKCM {
text: i18n("Show desktop layout indicators")
checked: kcm.osdTextOnly
checked: !kcm.osdTextOnly
onCheckedChanged: kcm.osdTextOnly = !checked
onToggled: kcm.osdTextOnly = !checked
}
}
}