aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/island
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/island')
-rw-r--r--desktop/island/HeadphonesPanel.qml7
1 files changed, 1 insertions, 6 deletions
diff --git a/desktop/island/HeadphonesPanel.qml b/desktop/island/HeadphonesPanel.qml
index 86e3ae4..315bc6b 100644
--- a/desktop/island/HeadphonesPanel.qml
+++ b/desktop/island/HeadphonesPanel.qml
@@ -306,12 +306,7 @@ Column {
anchors { right: parent.right; verticalCenter: parent.verticalCenter }
enabled: !panel.busy
checked: panel.voice
- // The click flips checked itself, which breaks the binding;
- // restore it so the switch follows what the headphones report.
- onToggled: {
- panel.run(["voice", checked ? "on" : "off"]);
- checked = Qt.binding(() => panel.voice);
- }
+ onToggled: on => panel.run(["voice", on ? "on" : "off"])
}
}