From 88f5f2ace432da6bbbbdbd6385b14c592bf9db78 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 4 Aug 2025 09:40:09 +0200 Subject: [PATCH] Show warning if no OpenVR library is detected --- dashboard/qml/Main.qml | 12 ++++++++++++ dashboard/settings.cpp | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/dashboard/qml/Main.qml b/dashboard/qml/Main.qml index 17952b9f..ed2b3dc5 100644 --- a/dashboard/qml/Main.qml +++ b/dashboard/qml/Main.qml @@ -74,6 +74,10 @@ Kirigami.ApplicationWindow { // root.pageStack.push(Qt.resolvedUrl("HeadsetStatsPage.qml")); // } // } + + function onJsonConfigurationChanged() { + config.load(WivrnServer); + } } Component.onCompleted: { @@ -153,6 +157,14 @@ Kirigami.ApplicationWindow { visible: VulkanInfo.driverId == "AmdProprietary" || VulkanInfo.driverId == "AmdOpenSource" } + Kirigami.InlineMessage { + Layout.fillWidth: true + text: i18n("No OpenVR compatibility detected, Steam games won't be able to load VR.\nInstall xrizer or OpenComposite.") + type: Kirigami.MessageType.Warning + showCloseButton: true + visible: WivrnServer.openVRCompat.length == 0 && config.openvr == "" + } + Kirigami.InlineMessage { id: message_failed_to_start Layout.fillWidth: true diff --git a/dashboard/settings.cpp b/dashboard/settings.cpp index b0e59d1b..7622f7c2 100644 --- a/dashboard/settings.cpp +++ b/dashboard/settings.cpp @@ -243,6 +243,10 @@ void Settings::load(const wivrn_server * server) else set_openvr(QString::fromStdString(*it)); } + else + { + set_openvr(""); + } } catch (...) {