on xenial help sign in
Automatically advance setup wizard on WiFi connection (#92)

Employs the fix suggested by @UniversalSuperBox to automatically advance the setup wizard once a connection to a WiFi network is established.

commit74e0f74626c1a145183a6f3e35f3ea965e33b59e authorAlessandro Vinciguerra <30745465+Arc676@users.noreply.github.com> dateFri 29 Mar 2019, 16:13 (8 years ago) parentf00cf3d
1 file changed+8−1
qml/Wizard/Pages/30-wifi.qml+8−1
qml/Wizard/Pages/30-wifi.qml+8−1
@@ -31,7 +31,14 @@ LocalComponents.Page {
3131 title: i18n.tr("Connect to Wi‑Fi")
3232 forwardButtonSourceComponent: forwardButton
3333
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+ }
3542
3643 function getExtendedProperty(object, propertyName, defaultValue) {
3744 if (object && object.hasOwnProperty(propertyName)) {