mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-06-11 00:47:22 +00:00
Keep inactive quick-setting tiles clickable
Restore the delegate/status-row enabled shadow property so visual state no longer binds to Item.enabled. Without this, off tiles become input-disabled and cannot be turned back on.
This commit is contained in:
parent
0ac87a712e
commit
b0ce6acdea
2 changed files with 9 additions and 0 deletions
|
|
@ -26,6 +26,11 @@ MobileShell.BaseItem {
|
||||||
required property string text
|
required property string text
|
||||||
required property string status
|
required property string status
|
||||||
required property string icon
|
required property string icon
|
||||||
|
// Visual active-state of the tile. Declared here to shadow the built-in
|
||||||
|
// Item.enabled: binding the real Item.enabled would disable the contentItem
|
||||||
|
// MouseArea, making an inactive tile impossible to tap (and thus turn on).
|
||||||
|
// Tiles are removed from the list via `available`, never disabled.
|
||||||
|
required property bool enabled
|
||||||
required property string settingsCommand
|
required property string settingsCommand
|
||||||
required property var toggleFunction
|
required property var toggleFunction
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,10 @@ Item {
|
||||||
required property string text
|
required property string text
|
||||||
required property string status
|
required property string status
|
||||||
required property string icon
|
required property string icon
|
||||||
|
// Visual active-state only. Shadows the built-in Item.enabled so binding it
|
||||||
|
// does not disable the inner toggle/detail MouseAreas (which would make an
|
||||||
|
// inactive service impossible to switch on).
|
||||||
|
required property bool enabled
|
||||||
required property var toggleFunction
|
required property var toggleFunction
|
||||||
property bool compact: false
|
property bool compact: false
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue