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.
Closes ubports/ubuntu-touch#845.
commit77d118d448f9f73155f9d3af56a8d670d07510ba
authorAlessandro Vinciguerra <30745465+Arc676@users.noreply.github.com>
dateFri 29 Mar 2019, 16:13 (8 years ago)
parent6cac3f3
qml/Wizard/Pages/30-wifi.qml+7−1
@@ -32,7 +32,13 @@ LocalComponents.Page {
3232 forwardButtonSourceComponent: forwardButton
3333
3434 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+ }
3642
3743 function getExtendedProperty(object, propertyName, defaultValue) {
3844 if (object && object.hasOwnProperty(propertyName)) {