From ef21074d294d365ca6661a7d8333e547e559bdac Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 2 Feb 2026 10:51:56 +0100 Subject: [PATCH] Show exit confirmation if connection is active --- dashboard/qml/Main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/qml/Main.qml b/dashboard/qml/Main.qml index d06c250f..8dfa963d 100644 --- a/dashboard/qml/Main.qml +++ b/dashboard/qml/Main.qml @@ -37,7 +37,7 @@ Kirigami.ApplicationWindow { } onClosing: (close) => { - if (WivrnServer.ownServer) + if (WivrnServer.ownServer && WivrnServer.sessionRunning) { close.accepted = false; confirm_close.open(); @@ -49,7 +49,7 @@ Kirigami.ApplicationWindow { Kirigami.PromptDialog { id: confirm_close title: i18n("Quit WiVRn") - subtitle: i18n("The WiVRn server is still running.\nClosing the window will terminate it.") + subtitle: i18n("The WiVRn server is active.\nClosing the window will terminate it.") iconName: "dialog-warning" popupType: Controls.Popup.Native standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel