Don't show wizard on first run if server failed
This commit is contained in:
@@ -59,6 +59,12 @@ Kirigami.ApplicationWindow {
|
|||||||
// Set the visible property here because dismissing the message removes the binding
|
// Set the visible property here because dismissing the message removes the binding
|
||||||
if (value == WivrnServer.FailedToStart)
|
if (value == WivrnServer.FailedToStart)
|
||||||
message_failed_to_start.visible = true;
|
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) {
|
function onPairingEnabledChanged(value) {
|
||||||
@@ -84,12 +90,6 @@ Kirigami.ApplicationWindow {
|
|||||||
if (WivrnServer.serverStatus == WivrnServer.Stopped)
|
if (WivrnServer.serverStatus == WivrnServer.Stopped)
|
||||||
WivrnServer.start_server();
|
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) {
|
if (root.last_run_version != ApkInstaller.currentVersion) {
|
||||||
root.last_run_version = ApkInstaller.currentVersion;
|
root.last_run_version = ApkInstaller.currentVersion;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user