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