Show warning if no OpenVR library is detected
This commit is contained in:
@@ -74,6 +74,10 @@ Kirigami.ApplicationWindow {
|
|||||||
// root.pageStack.push(Qt.resolvedUrl("HeadsetStatsPage.qml"));
|
// root.pageStack.push(Qt.resolvedUrl("HeadsetStatsPage.qml"));
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
function onJsonConfigurationChanged() {
|
||||||
|
config.load(WivrnServer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
@@ -153,6 +157,14 @@ Kirigami.ApplicationWindow {
|
|||||||
visible: VulkanInfo.driverId == "AmdProprietary" || VulkanInfo.driverId == "AmdOpenSource"
|
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 {
|
Kirigami.InlineMessage {
|
||||||
id: message_failed_to_start
|
id: message_failed_to_start
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|||||||
@@ -243,6 +243,10 @@ void Settings::load(const wivrn_server * server)
|
|||||||
else
|
else
|
||||||
set_openvr(QString::fromStdString(*it));
|
set_openvr(QString::fromStdString(*it));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
set_openvr("");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user