From c76516679dafd03113b5afa8f32c82cc871b9b67 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(-) (limited to 'app/bluetooth') 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