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-14 19:04:07 -0800
commit3f16f45cdf928cfc500a86e20e6c7e5a45ce3832 (patch)
tree47ec65bdcc91059f9accf8c6f82ca52695cce14e
parent1e4e9c7998863e3f8e01b709c9a06ed357a66a37 (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 {