From 3f16f45cdf928cfc500a86e20e6c7e5a45ce3832 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Mon, 14 Jan 2019 19:04:00 -0800 Subject: 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 --- app/bluetooth/Bluetooth.qml | 4 +--- 1 file changed, 1 insertion(+), 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 { -- cgit 1.2.3-korg