Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
Automatically advance setup wizard on WiFi connection (#92)
Browse files Browse the repository at this point in the history
Employs the fix suggested by @UniversalSuperBox to automatically advance the setup wizard once a connection to a WiFi network is established.
  • Loading branch information
Arc676 authored and UniversalSuperBox committed Apr 1, 2019
1 parent f00cf3d commit 74e0f74
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion qml/Wizard/Pages/30-wifi.qml
Expand Up @@ -31,7 +31,14 @@ LocalComponents.Page {
title: i18n.tr("Connect to Wi‑Fi")
forwardButtonSourceComponent: forwardButton

skip: root.connected
readonly property bool connected: Connectivity.online
skip: connected && !Connectivity.limitedBandwidth

onConnectedChanged: {
if (connected && !Connectivity.limitedBandwidth && wifiPage.visible) {
pageStack.next()
}
}

function getExtendedProperty(object, propertyName, defaultValue) {
if (object && object.hasOwnProperty(propertyName)) {
Expand Down

0 comments on commit 74e0f74

Please sign in to comment.