From: Matt Ranostay Date: Tue, 15 Jan 2019 03:04:00 +0000 (-0800) Subject: settings: bluetooth: fix power button issue X-Git-Tag: 6.99.4~1 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=c76516679dafd03113b5afa8f32c82cc871b9b67;p=apps%2Fsettings.git 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 --- 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 {