From: Matt Ranostay Date: Mon, 26 Jun 2017 04:19:58 +0000 (-0700) Subject: qml: launcher: initial bt + wifi states on load X-Git-Tag: 4.99.1~5 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=0d082622a1387660d4a483f738c8da8bc78912de;p=apps%2Fsettings.git qml: launcher: initial bt + wifi states on load Initial load didn't have the actual BT or WiFi states on the slider switches. This patchset sets them after probing to find current state via DBus services. Change-Id: I9e0bc0a6477c81d5acf7adfe3d5f15d941c33da9 Bug-AGL: SPEC-703 Signed-off-by: Matt Ranostay --- diff --git a/app/SettingsLauncher.qml b/app/SettingsLauncher.qml index 4591cb4..e100c4a 100644 --- a/app/SettingsLauncher.qml +++ b/app/SettingsLauncher.qml @@ -63,6 +63,10 @@ Page { checkedSwitch.checked = model.app.checked } } + + Component.onCompleted: { + checkedSwitch.checked = model.app.checked + } } Image { source: '../images/HMI_Settings_DividingLine.svg'