Start server after avahi "fix it"

This commit is contained in:
Patrick Nicolas
2025-12-13 11:28:30 +01:00
parent e46c317f87
commit 0d865ffc14
+12
View File
@@ -83,6 +83,18 @@ Kirigami.ApplicationWindow {
}
}
Connections {
target: Avahi
function onRunningChanged(value) {
if (value) {
if (WivrnServer.serverStatus != WivrnServer.Started) {
WivrnServer.start_server();
message_failed_to_start.visible = false;
}
}
}
}
Component.onCompleted: {
if (WivrnServer.serverStatus == WivrnServer.Stopped)
WivrnServer.start_server();