mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-21 01:21:38 -08:00
Don't show wizard on first run if server failed
This commit is contained in:
1 parent
e0608f0c68
commit
4f0daa0a63
1 file changed
+6
-6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user