Show warning if no OpenVR library is detected

This commit is contained in:
Patrick Nicolas
2025-08-04 09:40:09 +02:00
parent 9a53aaa205
commit 88f5f2ace4
2 changed files with 16 additions and 0 deletions
+12
View File
@@ -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
+4
View File
@@ -243,6 +243,10 @@ void Settings::load(const wivrn_server * server)
else
set_openvr(QString::fromStdString(*it));
}
else
{
set_openvr("");
}
}
catch (...)
{