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:
Marco Allegretti 2026-06-01 15:16:46 +02:00
parent 0ac87a712e
commit b0ce6acdea
2 changed files with 9 additions and 0 deletions

View file

@ -26,6 +26,11 @@ MobileShell.BaseItem {
required property string text
required property string status
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 var toggleFunction

View file

@ -18,6 +18,10 @@ Item {
required property string text
required property string status
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
property bool compact: false