on xenial help sign in
Automatically advance setup wizard on WiFi connection (#92)
74e0f74Alessandro Vinciguerra
qml/Wizard/Pages/30-wifi.qml+8−1
@@ -31,7 +31,14 @@ LocalComponents.Page {
31 title: i18n.tr("Connect to Wi‑Fi")
31 title: i18n.tr("Connect to Wi‑Fi")
32 forwardButtonSourceComponent: forwardButton
32 forwardButtonSourceComponent: forwardButton
33
33
34− skip: root.connected
34+ readonly property bool connected: Connectivity.online
35+ skip: connected && !Connectivity.limitedBandwidth
36+
37+ onConnectedChanged: {
38+ if (connected && !Connectivity.limitedBandwidth && wifiPage.visible) {
39+ pageStack.next()
40+ }
41+ }
35
42
36 function getExtendedProperty(object, propertyName, defaultValue) {
43 function getExtendedProperty(object, propertyName, defaultValue) {
37 if (object && object.hasOwnProperty(propertyName)) {
44 if (object && object.hasOwnProperty(propertyName)) {