summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-01-14 19:04:00 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-01-15 03:39:08 +0000
commitc76516679dafd03113b5afa8f32c82cc871b9b67 (patch)
treec34b425f520848cba35b041a627658c0d3e14e7b
parent9bbd51690847b0ebb91d0fc9b7e80d92875b8be4 (diff)
settings: bluetooth: fix power button issue
Responding to both checkbox clicks and power events will cause an infinite loop in some cases of toggling power state. Bug-AGL: SPEC-2004 Change-Id: I4fb841661472f875a978a5bd314157cfff07328b Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r--app/bluetooth/Bluetooth.qml4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/bluetooth/Bluetooth.qml b/app/bluetooth/Bluetooth.qml
index 8eb7cd6..32577bf 100644
--- a/app/bluetooth/Bluetooth.qml
+++ b/app/bluetooth/Bluetooth.qml
@@ -101,9 +101,7 @@ SettingPage {
}
}
- onPowerChanged: {
- root.checked = state
- }
+ Component.onCompleted: root.checked = bluetooth.power
}
Text {