diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-01-14 19:04:00 -0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-01-15 03:39:08 +0000 |
commit | c76516679dafd03113b5afa8f32c82cc871b9b67 (patch) | |
tree | c34b425f520848cba35b041a627658c0d3e14e7b | |
parent | 9bbd51690847b0ebb91d0fc9b7e80d92875b8be4 (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.qml | 4 |
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 { |