aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/status/StatusRow.qml
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/modules/status/StatusRow.qml')
-rw-r--r--desktop/modules/status/StatusRow.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop/modules/status/StatusRow.qml b/desktop/modules/status/StatusRow.qml
index c342e2b..c9e78c0 100644
--- a/desktop/modules/status/StatusRow.qml
+++ b/desktop/modules/status/StatusRow.qml
@@ -53,4 +53,9 @@ Item {
checked: row.value
onToggled: Status.toggleMode(row.mode)
}
+
+ // The shared Switch's click handler writes `checked` directly, which drops
+ // the declarative binding above. Resync on any value change so an external
+ // write (statusctl, waybar) moves the switch back into agreement.
+ onValueChanged: sw.checked = row.value
}