Commit 7c15bc77 authored by David Edmundson's avatar David Edmundson

[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
parent de04d362
......@@ -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
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment