qml: launcher: initial bt + wifi states on load 97/9797/1
authorMatt Ranostay <matt.ranostay@konsulko.com>
Mon, 26 Jun 2017 04:19:58 +0000 (21:19 -0700)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Mon, 26 Jun 2017 04:36:43 +0000 (21:36 -0700)
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 <matt.ranostay@konsulko.com>
app/SettingsLauncher.qml

index 4591cb4..e100c4a 100644 (file)
@@ -63,6 +63,10 @@ Page {
                         checkedSwitch.checked = model.app.checked
                     }
                 }
+
+                Component.onCompleted: {
+                    checkedSwitch.checked = model.app.checked
+                }
             }
             Image {
                 source: '../images/HMI_Settings_DividingLine.svg'