Don't show wizard on first run if server failed

This commit is contained in:
Patrick Nicolas committed 2025-08-08 14:38:49 +02:00
1 parent e0608f0c68
commit 4f0daa0a63
1 file changed
+6 -6
+6 -6
View File
@@ -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;
}