diff --git a/dashboard/qml/Main.qml b/dashboard/qml/Main.qml index ed2b3dc5..e3e14a0b 100644 --- a/dashboard/qml/Main.qml +++ b/dashboard/qml/Main.qml @@ -59,6 +59,12 @@ Kirigami.ApplicationWindow { // Set the visible property here because dismissing the message removes the binding if (value == WivrnServer.FailedToStart) message_failed_to_start.visible = true; + + if (root.first_run && started) { + console.log("First run"); + root.pageStack.push(Qt.resolvedUrl("WizardPage.qml")); + root.first_run = false; + } } function onPairingEnabledChanged(value) { @@ -84,12 +90,6 @@ Kirigami.ApplicationWindow { if (WivrnServer.serverStatus == WivrnServer.Stopped) WivrnServer.start_server(); - if (root.first_run) { - console.log("First run"); - root.pageStack.push(Qt.resolvedUrl("WizardPage.qml")); - root.first_run = false; - } - if (root.last_run_version != ApkInstaller.currentVersion) { root.last_run_version = ApkInstaller.currentVersion; }