[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/D18272icc-effect-5.17.5
parent
de04d362da
commit
7c15bc7765
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue