actions
+}
diff --git a/dashboard/qml/TroubleshootPage.qml b/dashboard/qml/TroubleshootPage.qml
new file mode 100644
index 00000000..e3c068f3
--- /dev/null
+++ b/dashboard/qml/TroubleshootPage.qml
@@ -0,0 +1,82 @@
+pragma ComponentBehavior: Bound
+
+import QtQuick
+import QtQuick.Controls as Controls
+import org.kde.kirigami as Kirigami
+
+import io.github.wivrn.wivrn
+
+Kirigami.ScrollablePage {
+ title: i18n("Troubleshoot")
+ id: page
+
+ Kirigami.Theme.colorSet: Kirigami.Theme.View
+
+ Kirigami.CardsLayout {
+ maximumColumns: 1
+ rowSpacing: Kirigami.Units.largeSpacing * 2
+
+ TroubleshootCard {
+ title: i18n("I cannot find the WiVRn app on my headset")
+ details: i18n("If you installed WiVRn over USB on a Meta headset, the app is in the \"unknown sources\" section.")
+ }
+ TroubleshootCard {
+ title: i18n("I cannot see my computer in the WiVRn app")
+ details: i18n("If the server is not visible or the connection fails, check that port 5353 (UDP) and 9757 (TCP and UDP) are open in your firewall.")
+ }
+ TroubleshootCard {
+ title: i18n("I have an \"Incompatible WiVRn server\" error on my headset")
+ details: i18n("The version of the headset app and the server on your computer must match.
- The headset app version is in the \"About\" page
- The server version is %1
", ApkInstaller.currentVersion)
+ }
+ TroubleshootCard {
+ title: i18n("I have a \"Pairing is disabled\" error")
+ details: i18n("If you have reinstalled the server or the client or if you want to connect another headset, you must enable pairing before connecting.") + "\n\n" + (WivrnServer.pairingEnabled ? i18n("Pairing is currently enabled with PIN %1.", WivrnServer.pin) : i18n("Pairing is currently disabled."))
+
+ actions: [
+ Kirigami.Action {
+ text: i18n("Enable pairing")
+ visible: !WivrnServer.pairingEnabled
+ onTriggered: WivrnServer.enable_pairing()
+ },
+ Kirigami.Action {
+ text: i18n("Disable pairing")
+ visible: WivrnServer.pairingEnabled
+ onTriggered: WivrnServer.disable_pairing()
+ }
+ ]
+ }
+ TroubleshootCard {
+ title: i18n("I have no sound on my headset")
+ details: i18n("When the headset is connected, select \"WiVRn\" as the default audio output device for applications to use it.")
+ }
+ }
+
+ footer: Controls.DialogButtonBox {
+ standardButtons: Controls.DialogButtonBox.NoButton
+ onAccepted: applicationWindow().pageStack.pop()
+
+ Controls.Button {
+ text: i18nc("go back to the home page", "Back")
+ icon.name: "go-previous"
+ Controls.DialogButtonBox.buttonRole: Controls.DialogButtonBox.AcceptRole
+ }
+ }
+
+ actions: [
+ Kirigami.Action {
+ text: i18n("Report an issue")
+ icon.source: Qt.resolvedUrl("Github.svg")
+ onTriggered: Qt.openUrlExternally("https://github.com/WiVRn/WiVRn/issues")
+ },
+ Kirigami.Action {
+ text: i18n("Ask on Discord")
+ icon.source: Qt.resolvedUrl("Discord.svg")
+ onTriggered: Qt.openUrlExternally("https://discord.gg/EHAYe3tTYa")
+ }
+ ]
+
+ Shortcut {
+ sequences: [StandardKey.Cancel]
+ onActivated: applicationWindow().pageStack.pop()
+ }
+}