Verified Commit d5e3677e authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[applets/userswitcher] Stop abusing `enabled` property to control visibility

It gives weird UX artifacts when entering applets edit mode: button
suddenly disappears and then re-appears again. As a negative
side-effect, this affects implicit height of a popup.
parent aee22dab
......@@ -220,8 +220,7 @@ Item {
text: i18nc("@action", "Lock Screen")
icon: "system-lock-screen"
highlight: delegateHighlight
enabled: pmEngine.data["Sleep States"]["LockScreen"]
visible: enabled
visible: pmEngine.data["Sleep States"]["LockScreen"]
onClicked: pmEngine.performOperation("lockScreen")
}
......
Supports Markdown
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