From d5e4e3cfce0f229711b0a7057e12539ced2f18a8 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 2 Feb 2026 10:45:45 +0100 Subject: [PATCH 1/6] Add a warning when closing the dashboard --- dashboard/qml/Main.qml | 20 +++++++++++++++++++- dashboard/wivrn_server.cpp | 2 ++ dashboard/wivrn_server.h | 7 +++++++ 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/dashboard/qml/Main.qml b/dashboard/qml/Main.qml index c3b59faf..d06c250f 100644 --- a/dashboard/qml/Main.qml +++ b/dashboard/qml/Main.qml @@ -36,7 +36,25 @@ Kirigami.ApplicationWindow { } } - onClosing: Qt.quit() + onClosing: (close) => { + if (WivrnServer.ownServer) + { + close.accepted = false; + confirm_close.open(); + } else { + Qt.quit(); + } + } + + Kirigami.PromptDialog { + id: confirm_close + title: i18n("Quit WiVRn") + subtitle: i18n("The WiVRn server is still running.\nClosing the window will terminate it.") + iconName: "dialog-warning" + popupType: Controls.Popup.Native + standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel + onAccepted: Qt.quit() + } width: 900 height: 800 diff --git a/dashboard/wivrn_server.cpp b/dashboard/wivrn_server.cpp index ee956546..47a67d3a 100644 --- a/dashboard/wivrn_server.cpp +++ b/dashboard/wivrn_server.cpp @@ -137,10 +137,12 @@ void wivrn_server::start_server() qDebug() << "Server finished before registering on dbus"; serverStatusChanged(m_serverStatus = Status::FailedToStart); } + ownServerChanged(); } }); server_process->start(server_path(), QApplication::arguments().mid(1)); + ownServerChanged(); } break; diff --git a/dashboard/wivrn_server.h b/dashboard/wivrn_server.h index b5d07f1d..5ea693dc 100644 --- a/dashboard/wivrn_server.h +++ b/dashboard/wivrn_server.h @@ -172,6 +172,7 @@ public: // Server information Q_PROPERTY(Status serverStatus READ serverStatus NOTIFY serverStatusChanged) + Q_PROPERTY(bool ownServer READ ownServer NOTIFY ownServerChanged) Q_PROPERTY(bool headsetConnected READ isHeadsetConnected NOTIFY headsetConnectedChanged) Q_PROPERTY(bool sessionRunning READ isSessionRunning NOTIFY sessionRunningChanged) Q_PROPERTY(QString jsonConfiguration READ jsonConfiguration WRITE setJsonConfiguration NOTIFY jsonConfigurationChanged) @@ -221,6 +222,11 @@ public: return m_serverStatus; } + bool ownServer() const + { + return server_process; + } + bool isHeadsetConnected() const { return m_headsetConnected; @@ -379,6 +385,7 @@ private: Q_SIGNALS: void serverStatusChanged(Status); + void ownServerChanged(); void headsetConnectedChanged(bool); void sessionRunningChanged(bool); void jsonConfigurationChanged(QString); From ef21074d294d365ca6661a7d8333e547e559bdac Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 2 Feb 2026 10:51:56 +0100 Subject: [PATCH 2/6] Show exit confirmation if connection is active --- dashboard/qml/Main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/qml/Main.qml b/dashboard/qml/Main.qml index d06c250f..8dfa963d 100644 --- a/dashboard/qml/Main.qml +++ b/dashboard/qml/Main.qml @@ -37,7 +37,7 @@ Kirigami.ApplicationWindow { } onClosing: (close) => { - if (WivrnServer.ownServer) + if (WivrnServer.ownServer && WivrnServer.sessionRunning) { close.accepted = false; confirm_close.open(); @@ -49,7 +49,7 @@ Kirigami.ApplicationWindow { Kirigami.PromptDialog { id: confirm_close title: i18n("Quit WiVRn") - subtitle: i18n("The WiVRn server is still running.\nClosing the window will terminate it.") + subtitle: i18n("The WiVRn server is active.\nClosing the window will terminate it.") iconName: "dialog-warning" popupType: Controls.Popup.Native standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel From 542b9822cff06fbdb5f5ec5569d75261a4fa2d01 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 2 Feb 2026 10:54:14 +0100 Subject: [PATCH 3/6] FR locale --- locale/fr/wivrn-dashboard.po | 114 ++++++++++++++++++++--------------- 1 file changed, 64 insertions(+), 50 deletions(-) diff --git a/locale/fr/wivrn-dashboard.po b/locale/fr/wivrn-dashboard.po index 2b3305ef..3fe3ddc2 100644 --- a/locale/fr/wivrn-dashboard.po +++ b/locale/fr/wivrn-dashboard.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn-dashboard\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-01-06 17:50+0100\n" -"PO-Revision-Date: 2026-01-06 17:52+0100\n" +"POT-Creation-Date: 2026-02-02 10:52+0100\n" +"PO-Revision-Date: 2026-02-02 10:53+0100\n" "Last-Translator: Guillaume Meunier \n" "Language-Team: French <>\n" "Language: French\n" @@ -67,33 +67,28 @@ msgstr "La commande « adb install » a échoué : code de retour %1" msgid "Installation successful" msgstr "Installation réussie" -#: dashboard/main.cpp:28 dashboard/qml/Main.qml:12 -#, kde-format -msgid "WiVRn dashboard" -msgstr "Tableau de bord de WiVRn" - -#: dashboard/main.cpp:32 +#: dashboard/main.cpp:26 #, kde-format msgctxt "@title" msgid "WiVRn" msgstr "WiVRn" -#: dashboard/main.cpp:34 +#: dashboard/main.cpp:28 #, kde-format msgid "WiVRn server" msgstr "Serveur WiVRn" -#: dashboard/main.cpp:36 +#: dashboard/main.cpp:30 #, kde-format msgid "(c) 2022-2026 WiVRn development team" msgstr "(c) 2022-2026 l'équipe de développement WiVRn" -#: dashboard/main.cpp:43 +#: dashboard/main.cpp:40 #, kde-format msgid "Monado" msgstr "Monado" -#: dashboard/main.cpp:44 +#: dashboard/main.cpp:41 #, kde-format msgid "OpenXR runtime" msgstr "Runtime OpenXR" @@ -122,8 +117,8 @@ msgstr "Vérification de la dernière version..." msgid "No APK is available for this version" msgstr "Aucun APK n'est disponible pour cette version" -#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:350 -#: dashboard/qml/Main.qml:408 dashboard/qml/WizardPage.qml:211 +#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:368 +#: dashboard/qml/Main.qml:426 dashboard/qml/WizardPage.qml:211 #: dashboard/qml/WizardPage.qml:337 #, kde-format msgid "ADB is not installed" @@ -165,7 +160,7 @@ msgstr "Réinstaller WiVRn" msgid "Install WiVRn" msgstr "Installer WiVRn" -#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:413 +#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:431 #, kde-format msgid "Headsets" msgstr "Casques" @@ -262,28 +257,47 @@ msgstr "Appairer un nouveau casque" msgid "Headset statistics" msgstr "Statistiques" -#: dashboard/qml/Main.qml:124 +#: dashboard/qml/Main.qml:12 +#, kde-format +msgid "WiVRn dashboard" +msgstr "Tableau de bord de WiVRn" + +#: dashboard/qml/Main.qml:51 +#, kde-format +msgid "Quit WiVRn" +msgstr "Quitter WiVRn" + +#: dashboard/qml/Main.qml:52 +#, kde-format +msgid "" +"The WiVRn server is active.\n" +"Closing the window will terminate it." +msgstr "" +"Le serveur WiVRn est actif.\n" +"Fermer la fenêtre va le quitter." + +#: dashboard/qml/Main.qml:142 #, kde-format msgid "Avahi daemon is not installed" msgstr "Avahi daemon n'est pas installé" -#: dashboard/qml/Main.qml:132 +#: dashboard/qml/Main.qml:150 #, kde-format msgid "Avahi daemon is not started" msgstr "Avahi daemon n'est pas démarré" -#: dashboard/qml/Main.qml:139 dashboard/qml/Main.qml:153 -#: dashboard/qml/Main.qml:205 +#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171 +#: dashboard/qml/Main.qml:223 #, kde-format msgid "Fix it" msgstr "Corriger" -#: dashboard/qml/Main.qml:147 +#: dashboard/qml/Main.qml:165 #, kde-format msgid "Firewall may not allow port 9757" msgstr "Le pare-feu pourrait ne pas autoriser le port 9757" -#: dashboard/qml/Main.qml:161 +#: dashboard/qml/Main.qml:179 #, kde-format msgid "" "NVIDIA GPUs require at least driver version 565.77, current version is %1" @@ -291,12 +305,12 @@ msgstr "" "Les GPUs NVIDIA nécessitent au moins le driver 565.77, la version actuelle " "est %1." -#: dashboard/qml/Main.qml:167 +#: dashboard/qml/Main.qml:185 #, kde-format msgid "More info" msgstr "Plus d'infos" -#: dashboard/qml/Main.qml:175 +#: dashboard/qml/Main.qml:193 #, kde-format msgid "" "Use the Mesa (radv) driver for AMD GPUs\n" @@ -305,7 +319,7 @@ msgstr "" "Utilisez le driver Mesa (redv) pour les GPUs AMD\n" "L'encodage matériel avec vaapi ne fonctionne pas avec AMDVLK et AMDGPU-PRO" -#: dashboard/qml/Main.qml:183 +#: dashboard/qml/Main.qml:201 #, kde-format msgid "" "No OpenVR compatibility detected, Steam games won't be able to load VR.\n" @@ -315,14 +329,14 @@ msgstr "" "pourront pas charger le mode VR.\n" "Veuillez installer xrizer ou OpenComposite." -#: dashboard/qml/Main.qml:191 +#: dashboard/qml/Main.qml:209 #, kde-format msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn." msgstr "" "Steam est installé en tant que snap. Les snaps ne sont pas compatibles avec " "WiVRn." -#: dashboard/qml/Main.qml:199 +#: dashboard/qml/Main.qml:217 #, kde-format msgid "" "Steam is installed as a flatpak but does not have sufficient permissions." @@ -330,114 +344,114 @@ msgstr "" "Steam est installé en tant que flatpak mais n'a pas les autorisations " "nécessaires." -#: dashboard/qml/Main.qml:214 +#: dashboard/qml/Main.qml:232 #, kde-format msgid "Restart the server for configuration changes to take effect" msgstr "Redémarez le serveur pour appliquer les changements" -#: dashboard/qml/Main.qml:220 +#: dashboard/qml/Main.qml:238 #, kde-format msgctxt "restart the server" msgid "Restart now" msgstr "Redémarrer" -#: dashboard/qml/Main.qml:245 +#: dashboard/qml/Main.qml:263 #, kde-format msgid "Server failed to start" msgstr "Le serveur n'a pas pu démarrer" -#: dashboard/qml/Main.qml:251 dashboard/qml/TroubleshootPage.qml:89 +#: dashboard/qml/Main.qml:269 dashboard/qml/TroubleshootPage.qml:89 #, kde-format msgid "Open server logs" msgstr "Ouvrir les logs du serveur" -#: dashboard/qml/Main.qml:277 +#: dashboard/qml/Main.qml:295 #, kde-format msgid "Server status" msgstr "Serveur" -#: dashboard/qml/Main.qml:283 +#: dashboard/qml/Main.qml:301 #, kde-format msgctxt "whether the server is running, displayed in front of a checkbox" msgid "Running" msgstr "Démarré" -#: dashboard/qml/Main.qml:296 +#: dashboard/qml/Main.qml:314 #, kde-format msgctxt "whether pairing is enabled, displayed in front of a checkbox" msgid "Pairing" msgstr "Appairage" -#: dashboard/qml/Main.qml:316 +#: dashboard/qml/Main.qml:334 #, kde-format msgid "Headset status" msgstr "Casque" -#: dashboard/qml/Main.qml:323 +#: dashboard/qml/Main.qml:341 #, kde-format msgctxt "label for headset name/status under server running switch" msgid "Headset" msgstr "Casque" -#: dashboard/qml/Main.qml:326 +#: dashboard/qml/Main.qml:344 #, kde-format msgid "Not connected" msgstr "Déconnecté" -#: dashboard/qml/Main.qml:330 +#: dashboard/qml/Main.qml:348 #, kde-format msgid "Disconnect" msgstr "Déconnecter" -#: dashboard/qml/Main.qml:339 dashboard/qml/Main.qml:347 -#: dashboard/qml/Main.qml:354 +#: dashboard/qml/Main.qml:357 dashboard/qml/Main.qml:365 +#: dashboard/qml/Main.qml:372 #, kde-format msgctxt "label for USB status or connect button" msgid "USB" msgstr "USB" -#: dashboard/qml/Main.qml:340 +#: dashboard/qml/Main.qml:358 #, kde-format msgctxt "usb connect button" msgid "Connect (wired)" msgstr "Connecter (filaire)" -#: dashboard/qml/Main.qml:357 dashboard/qml/WizardPage.qml:339 +#: dashboard/qml/Main.qml:375 dashboard/qml/WizardPage.qml:339 #, kde-format msgid "No headset is connected or your headset is not in developer mode" msgstr "Le casque n'est pas connecté ou n'est pas en mode développeur" -#: dashboard/qml/Main.qml:378 +#: dashboard/qml/Main.qml:396 #, kde-format msgid "Steam information" msgstr "Informations pour Steam" -#: dashboard/qml/Main.qml:394 +#: dashboard/qml/Main.qml:412 #, kde-format msgid "Wizard" msgstr "Assistant" -#: dashboard/qml/Main.qml:400 +#: dashboard/qml/Main.qml:418 #, kde-format msgid "Install the app" msgstr "Installer l'appli" -#: dashboard/qml/Main.qml:419 dashboard/qml/SettingsPage.qml:14 +#: dashboard/qml/Main.qml:437 dashboard/qml/SettingsPage.qml:14 #, kde-format msgid "Settings" msgstr "Paramètres" -#: dashboard/qml/Main.qml:425 +#: dashboard/qml/Main.qml:443 #, kde-format msgid "About" msgstr "À propos" -#: dashboard/qml/Main.qml:430 dashboard/qml/TroubleshootPage.qml:10 +#: dashboard/qml/Main.qml:448 dashboard/qml/TroubleshootPage.qml:10 #, kde-format msgid "Troubleshoot" msgstr "Dépannage" -#: dashboard/qml/Main.qml:437 +#: dashboard/qml/Main.qml:455 #, kde-format msgid "Version %1" msgstr "Version %1" @@ -948,12 +962,12 @@ msgstr "Finir" msgid "Finished" msgstr "Terminé" -#: dashboard/wivrn_server.cpp:538 +#: dashboard/wivrn_server.cpp:540 #, kde-format msgid "xrizer" msgstr "xrizer" -#: dashboard/wivrn_server.cpp:539 +#: dashboard/wivrn_server.cpp:541 #, kde-format msgid "Open Composite" msgstr "Open Composite" From 0d5aa4d8872e3b42b0fb8bbc4db38bd8cedeeeca Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 2 Feb 2026 14:04:53 +0100 Subject: [PATCH 4/6] Hide USB text once connected --- dashboard/qml/Main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/qml/Main.qml b/dashboard/qml/Main.qml index 8dfa963d..e28ab036 100644 --- a/dashboard/qml/Main.qml +++ b/dashboard/qml/Main.qml @@ -363,14 +363,14 @@ Kirigami.ApplicationWindow { Controls.Label { Kirigami.FormData.label: i18nc("label for USB status or connect button", "USB") - visible: !Adb.adbInstalled + visible: !Adb.adbInstalled && !WivrnServer.headsetConnected enabled: root.server_started text: i18n("ADB is not installed") } Controls.Label { Kirigami.FormData.label: i18nc("label for USB status or connect button", "USB") - visible: Adb.adbInstalled && select_usb_device.connected_headset_count == 0 + visible: Adb.adbInstalled && select_usb_device.connected_headset_count == 0 && !WivrnServer.headsetConnected enabled: root.server_started text: i18n("No headset is connected or your headset is not in developer mode"); Layout.fillWidth: true From 6961485430b078d9070d086fec47e605a7c59e3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udio=20=27Patola=27=20Sampaio?= Date: Mon, 2 Feb 2026 15:56:30 +0100 Subject: [PATCH 5/6] 2 new strings + formatting fix --- locale/pt_BR/wivrn-dashboard.po | 116 ++++++++++++++++++-------------- locale/pt_BR/wivrn.po | 96 +++++++++++++------------- 2 files changed, 113 insertions(+), 99 deletions(-) diff --git a/locale/pt_BR/wivrn-dashboard.po b/locale/pt_BR/wivrn-dashboard.po index 909554b4..90a3e75e 100644 --- a/locale/pt_BR/wivrn-dashboard.po +++ b/locale/pt_BR/wivrn-dashboard.po @@ -10,8 +10,8 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn-dashboard\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-01-06 17:57+0100\n" -"PO-Revision-Date: 2026-01-06 18:18+0100\n" +"POT-Creation-Date: 2026-02-02 14:05+0100\n" +"PO-Revision-Date: 2026-02-02 15:54+0100\n" "Last-Translator: Claudio Sampaio (Patola) \n" "Language-Team: Portuguese <>\n" "Language: pt_BR\n" @@ -19,7 +19,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Lokalize 25.12.0\n" +"X-Generator: Lokalize 25.12.1\n" #: dashboard/apk_installer.cpp:137 #, kde-format @@ -71,33 +71,28 @@ msgstr "O comando 'adb install' falhou: código de saída %1" msgid "Installation successful" msgstr "Instalação bem-sucedida" -#: dashboard/main.cpp:28 dashboard/qml/Main.qml:12 -#, kde-format -msgid "WiVRn dashboard" -msgstr "Painel do WiVRn" - -#: dashboard/main.cpp:32 +#: dashboard/main.cpp:26 #, kde-format msgctxt "@title" msgid "WiVRn" msgstr "WiVRn" -#: dashboard/main.cpp:34 +#: dashboard/main.cpp:28 #, kde-format msgid "WiVRn server" msgstr "Servidor WiVRn" -#: dashboard/main.cpp:36 +#: dashboard/main.cpp:30 #, kde-format msgid "(c) 2022-2026 WiVRn development team" msgstr "(c) 2022-2026 time de desenvolvimento do WiVRn" -#: dashboard/main.cpp:43 +#: dashboard/main.cpp:40 #, kde-format msgid "Monado" msgstr "Monado" -#: dashboard/main.cpp:44 +#: dashboard/main.cpp:41 #, kde-format msgid "OpenXR runtime" msgstr "Runtime OpenXR" @@ -126,8 +121,8 @@ msgstr "Verificando a última versão..." msgid "No APK is available for this version" msgstr "Nenhum APK está disponível para esta versão" -#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:350 -#: dashboard/qml/Main.qml:408 dashboard/qml/WizardPage.qml:211 +#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:368 +#: dashboard/qml/Main.qml:426 dashboard/qml/WizardPage.qml:211 #: dashboard/qml/WizardPage.qml:337 #, kde-format msgid "ADB is not installed" @@ -170,7 +165,7 @@ msgstr "Reinstalar WiVRn" msgid "Install WiVRn" msgstr "Instalar WiVRn" -#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:413 +#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:431 #, kde-format msgid "Headsets" msgstr "Headsets" @@ -266,40 +261,59 @@ msgstr "Parear um novo headset" msgid "Headset statistics" msgstr "Estatísticas do headset" -#: dashboard/qml/Main.qml:124 +#: dashboard/qml/Main.qml:12 +#, kde-format +msgid "WiVRn dashboard" +msgstr "Painel do WiVRn" + +#: dashboard/qml/Main.qml:51 +#, kde-format +msgid "Quit WiVRn" +msgstr "Sair do WiVRn" + +#: dashboard/qml/Main.qml:52 +#, kde-format +msgid "" +"The WiVRn server is active.\n" +"Closing the window will terminate it." +msgstr "" +"O Servidor WiVRn está ativo.\n" +"Fechar a janela o encerrará." + +#: dashboard/qml/Main.qml:142 #, kde-format msgid "Avahi daemon is not installed" msgstr "Avahi daemon não está instalado" -#: dashboard/qml/Main.qml:132 +#: dashboard/qml/Main.qml:150 #, kde-format msgid "Avahi daemon is not started" msgstr "Avahi daemon não foi iniciado" -#: dashboard/qml/Main.qml:139 dashboard/qml/Main.qml:153 -#: dashboard/qml/Main.qml:205 +#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171 +#: dashboard/qml/Main.qml:223 #, kde-format msgid "Fix it" msgstr "Conserte" -#: dashboard/qml/Main.qml:147 +#: dashboard/qml/Main.qml:165 #, kde-format msgid "Firewall may not allow port 9757" msgstr "O firewall pode não permitir a porta 9757" -#: dashboard/qml/Main.qml:161 +#: dashboard/qml/Main.qml:179 #, kde-format msgid "" "NVIDIA GPUs require at least driver version 565.77, current version is %1" msgstr "" "GPUs NVIDIA requerem pelo menos o driver versão 565.77, a versão atual é %1" -#: dashboard/qml/Main.qml:167 +#: dashboard/qml/Main.qml:185 #, kde-format msgid "More info" msgstr "Mais informações" -#: dashboard/qml/Main.qml:175 +#: dashboard/qml/Main.qml:193 #, kde-format msgid "" "Use the Mesa (radv) driver for AMD GPUs\n" @@ -308,7 +322,7 @@ msgstr "" "Use o driver Mesa (radv) para GPUs AMD\n" "Codificação de hardware com a vaapi não funciona com AMDVLK e AMDGPU-PRO" -#: dashboard/qml/Main.qml:183 +#: dashboard/qml/Main.qml:201 #, kde-format msgid "" "No OpenVR compatibility detected, Steam games won't be able to load VR.\n" @@ -318,127 +332,127 @@ msgstr "" "conseguirão carregar em VR.\n" "Instale o xrizer ou o OpenComposite." -#: dashboard/qml/Main.qml:191 +#: dashboard/qml/Main.qml:209 #, kde-format msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn." msgstr "A Steam está instalada como snap. Snaps não são compatíveis com WiVRn." -#: dashboard/qml/Main.qml:199 +#: dashboard/qml/Main.qml:217 #, kde-format msgid "" "Steam is installed as a flatpak but does not have sufficient permissions." msgstr "A Steam está instalada como flatpak e não tem permissões suficientes." -#: dashboard/qml/Main.qml:214 +#: dashboard/qml/Main.qml:232 #, kde-format msgid "Restart the server for configuration changes to take effect" msgstr "" "Reinicie o servidor para que as alterações de configuração tenham efeito" -#: dashboard/qml/Main.qml:220 +#: dashboard/qml/Main.qml:238 #, kde-format msgctxt "restart the server" msgid "Restart now" msgstr "Reiniciar agora" -#: dashboard/qml/Main.qml:245 +#: dashboard/qml/Main.qml:263 #, kde-format msgid "Server failed to start" msgstr "Servidor falhou em iniciar" -#: dashboard/qml/Main.qml:251 dashboard/qml/TroubleshootPage.qml:89 +#: dashboard/qml/Main.qml:269 dashboard/qml/TroubleshootPage.qml:89 #, kde-format msgid "Open server logs" msgstr "Abrir logs do servidor" -#: dashboard/qml/Main.qml:277 +#: dashboard/qml/Main.qml:295 #, kde-format msgid "Server status" msgstr "Status do servidor" -#: dashboard/qml/Main.qml:283 +#: dashboard/qml/Main.qml:301 #, kde-format msgctxt "whether the server is running, displayed in front of a checkbox" msgid "Running" msgstr "Rodando" -#: dashboard/qml/Main.qml:296 +#: dashboard/qml/Main.qml:314 #, kde-format msgctxt "whether pairing is enabled, displayed in front of a checkbox" msgid "Pairing" msgstr "Pareando" -#: dashboard/qml/Main.qml:316 +#: dashboard/qml/Main.qml:334 #, kde-format msgid "Headset status" msgstr "Status do headset" -#: dashboard/qml/Main.qml:323 +#: dashboard/qml/Main.qml:341 #, kde-format msgctxt "label for headset name/status under server running switch" msgid "Headset" msgstr "Headset" -#: dashboard/qml/Main.qml:326 +#: dashboard/qml/Main.qml:344 #, kde-format msgid "Not connected" msgstr "Não conectado" -#: dashboard/qml/Main.qml:330 +#: dashboard/qml/Main.qml:348 #, kde-format msgid "Disconnect" msgstr "Desconectar" -#: dashboard/qml/Main.qml:339 dashboard/qml/Main.qml:347 -#: dashboard/qml/Main.qml:354 +#: dashboard/qml/Main.qml:357 dashboard/qml/Main.qml:365 +#: dashboard/qml/Main.qml:372 #, kde-format msgctxt "label for USB status or connect button" msgid "USB" msgstr "USB" -#: dashboard/qml/Main.qml:340 +#: dashboard/qml/Main.qml:358 #, kde-format msgctxt "usb connect button" msgid "Connect (wired)" msgstr "Conectar (por cabo)" -#: dashboard/qml/Main.qml:357 dashboard/qml/WizardPage.qml:339 +#: dashboard/qml/Main.qml:375 dashboard/qml/WizardPage.qml:339 #, kde-format msgid "No headset is connected or your headset is not in developer mode" msgstr "" "Nenhum headset está conectado ou seu headset não está em modo desenvolvedor" -#: dashboard/qml/Main.qml:378 +#: dashboard/qml/Main.qml:396 #, kde-format msgid "Steam information" msgstr "Informações da Steam" -#: dashboard/qml/Main.qml:394 +#: dashboard/qml/Main.qml:412 #, kde-format msgid "Wizard" msgstr "Assistente" -#: dashboard/qml/Main.qml:400 +#: dashboard/qml/Main.qml:418 #, kde-format msgid "Install the app" msgstr "Instalar o aplicativo" -#: dashboard/qml/Main.qml:419 dashboard/qml/SettingsPage.qml:14 +#: dashboard/qml/Main.qml:437 dashboard/qml/SettingsPage.qml:14 #, kde-format msgid "Settings" msgstr "Ajustes" -#: dashboard/qml/Main.qml:425 +#: dashboard/qml/Main.qml:443 #, kde-format msgid "About" msgstr "Sobre" -#: dashboard/qml/Main.qml:430 dashboard/qml/TroubleshootPage.qml:10 +#: dashboard/qml/Main.qml:448 dashboard/qml/TroubleshootPage.qml:10 #, kde-format msgid "Troubleshoot" msgstr "Resolver problemas" -#: dashboard/qml/Main.qml:437 +#: dashboard/qml/Main.qml:455 #, kde-format msgid "Version %1" msgstr "Versão %1" @@ -946,12 +960,12 @@ msgstr "Terminar" msgid "Finished" msgstr "Terminado" -#: dashboard/wivrn_server.cpp:538 +#: dashboard/wivrn_server.cpp:540 #, kde-format msgid "xrizer" msgstr "xrizer" -#: dashboard/wivrn_server.cpp:539 +#: dashboard/wivrn_server.cpp:541 #, kde-format msgid "Open Composite" msgstr "Open Composite" diff --git a/locale/pt_BR/wivrn.po b/locale/pt_BR/wivrn.po index 62e110e9..6c92eb8a 100644 --- a/locale/pt_BR/wivrn.po +++ b/locale/pt_BR/wivrn.po @@ -1,7 +1,7 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the WiVRn package. # -# SPDX-FileCopyrightText: 2025 Claudio Sampaio (Patola) +# SPDX-FileCopyrightText: 2025, 2026 Claudio Sampaio (Patola) # LuckShiba , 2025. # # SPDX-FileCopyrightText: 2025 myghi63 @@ -11,15 +11,15 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-12-29 15:56+0100\n" -"PO-Revision-Date: 2025-12-30 02:05+0100\n" +"POT-Creation-Date: 2026-01-31 21:11+0100\n" +"PO-Revision-Date: 2026-02-02 15:55+0100\n" "Last-Translator: Claudio Sampaio (Patola) \n" "Language-Team: Portuguese <>\n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Lokalize 25.12.0\n" +"X-Generator: Lokalize 25.12.1\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: client/scene.cpp:73 @@ -97,13 +97,13 @@ msgid "Disabled" msgstr "Desabilitado" #: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258 -#: client/scenes/stream_gui.cpp:1015 +#: client/scenes/stream_gui.cpp:1009 msgid "Disconnect" msgstr "Desconectar" #: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753 #: client/scenes/lobby_gui_customize.cpp:844 -#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011 +#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1005 msgid "Close" msgstr "Fechar" @@ -141,7 +141,7 @@ msgid "TCP only" msgstr "TCP somente" #: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655 -#: client/scenes/stream_gui.cpp:968 +#: client/scenes/stream_gui.cpp:962 msgid "Cancel" msgstr "Cancelar" @@ -186,17 +186,17 @@ msgstr "Linguagem" msgid "System language" msgstr "Linguagem do Sistema" -#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417 +#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:411 msgid "Refresh rate" msgstr "Taxa de atualização" #: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582 -#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419 +#: client/scenes/stream_gui.cpp:411 client/scenes/stream_gui.cpp:413 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "Automático" -#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427 +#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:421 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -204,7 +204,7 @@ msgstr "" "Seleciona a taxa de atualização baseada no desempenho medido do aplicativo.\n" "Pode causar oscilações quando uma alteração ocorrer." -#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445 +#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:439 msgid "Minimum refresh rate" msgstr "Taxa de atualização mínima" @@ -392,15 +392,15 @@ msgstr "Valores de configuração estendidos" msgid "Allows unsafe configuration values, use at your own risk." msgstr "Permite valores de configuração inseguros, use por sua conta e risco." -#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479 +#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:473 msgid "OpenXR post-processing" msgstr "Pós-processamento OpenXR" -#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483 +#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:477 msgid "Supersampling" msgstr "Supersampling" -#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504 +#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:498 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -408,11 +408,11 @@ msgstr "" "Reduz flicker para arestas de alto contraste.\n" "Útil quando a resolução de entrada é alta comparada ao display do headset" -#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:509 +#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:503 msgid "Sharpening" msgstr "Aumento de nitidez" -#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530 +#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:524 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -421,7 +421,7 @@ msgstr "" "Útil quando a resolução de entrada é baixa comparada ao display do headset" #: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160 -#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373 +#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:370 msgid "CPU time" msgstr "Tempo de CPU" @@ -430,7 +430,7 @@ msgid "CPU time [ms]" msgstr "Tempo de CPU [ms]" #: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174 -#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374 +#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:371 msgid "GPU time" msgstr "Tempo de GPU" @@ -518,7 +518,7 @@ msgstr "Adicionar servidor" msgid "Server list" msgstr "Lista de servidores" -#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996 +#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:990 msgid "Settings" msgstr "Ajustes" @@ -547,8 +547,8 @@ msgid "" "Press the grip button or put your palm up\n" "to move the main window" msgstr "" -"Pressione o botão de aderência ou coloque a palma da mão para cima\n" -"para mover a janela principal" +"Pressione o botão de aderência ou coloque a palma\n" +"da mão para cima para mover a janela principal" #: client/scenes/lobby_gui.cpp:1979 msgid "Press the grip button to move the main window" @@ -637,11 +637,11 @@ msgstr "Defoveação" msgid "Network" msgstr "Rede" -#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371 +#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:368 msgid "Download" msgstr "Download" -#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372 +#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369 msgid "Upload" msgstr "Upload" @@ -682,107 +682,107 @@ msgstr "Exibição" msgid "Predicted" msgstr "Previsão" -#: client/scenes/stream_gui.cpp:344 +#: client/scenes/stream_gui.cpp:343 #, c++-format msgid "Estimated motion to photons latency: {}ms" msgstr "Movimento estimado para a latência de fótons: {}ms" -#: client/scenes/stream_gui.cpp:351 +#: client/scenes/stream_gui.cpp:348 msgid "Press the grip button to move the window" msgstr "Pressione o botão de aderência para mover a janela" -#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:924 +#: client/scenes/stream_gui.cpp:350 client/scenes/stream_gui.cpp:918 msgid "Press both thumbsticks to display the WiVRn window" msgstr "Pressione ambos os thumbsticks para mostrar a janela do WiVRn" -#: client/scenes/stream_gui.cpp:375 +#: client/scenes/stream_gui.cpp:372 msgid "Motion to photon latency" msgstr "Latência (de movimento para fótons)" -#: client/scenes/stream_gui.cpp:464 +#: client/scenes/stream_gui.cpp:458 msgid "Bitrate:" msgstr "Bitrate:" -#: client/scenes/stream_gui.cpp:474 +#: client/scenes/stream_gui.cpp:468 msgid "Click to adjust bitrate" msgstr "Clique para ajustar a bitrate" -#: client/scenes/stream_gui.cpp:537 +#: client/scenes/stream_gui.cpp:531 msgid "Foveation center override" msgstr "Ajuste do centro de foveação" -#: client/scenes/stream_gui.cpp:540 +#: client/scenes/stream_gui.cpp:534 msgid "Enable" msgstr "Habilitar" -#: client/scenes/stream_gui.cpp:548 client/scenes/stream_gui.cpp:620 +#: client/scenes/stream_gui.cpp:542 client/scenes/stream_gui.cpp:614 #, c++-format msgid "Height {:.1f} deg" msgstr "Altura {:.1f} graus" -#: client/scenes/stream_gui.cpp:549 client/scenes/stream_gui.cpp:621 +#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:615 #, c++-format msgid "Distance {:.2f} m" msgstr "Distância {:.2f} m" -#: client/scenes/stream_gui.cpp:550 +#: client/scenes/stream_gui.cpp:544 msgid "Default" msgstr "Padrão" -#: client/scenes/stream_gui.cpp:561 +#: client/scenes/stream_gui.cpp:555 msgid "Change" msgstr "Modificar" -#: client/scenes/stream_gui.cpp:594 +#: client/scenes/stream_gui.cpp:588 msgid "Use the right thumbstick to adjust the bitrate" msgstr "Use o analógico direito para ajustar a bitrate" -#: client/scenes/stream_gui.cpp:595 +#: client/scenes/stream_gui.cpp:589 msgid "Press A to go back" msgstr "Pressione A para voltar" -#: client/scenes/stream_gui.cpp:596 +#: client/scenes/stream_gui.cpp:590 #, c++-format msgid "Bitrate: {}Mbit/s" msgstr "Bitrate: {}Mbit/s" -#: client/scenes/stream_gui.cpp:618 +#: client/scenes/stream_gui.cpp:612 msgid "Use the thumbsticks to move the foveation center" msgstr "Use os thumbsticks para mover o centro da foveação" -#: client/scenes/stream_gui.cpp:619 +#: client/scenes/stream_gui.cpp:613 msgid "Press A to save or B to cancel" msgstr "Pressione A para salvar ou B para cancelar" -#: client/scenes/stream_gui.cpp:677 +#: client/scenes/stream_gui.cpp:671 msgid "Running XR applications:" msgstr "Aplicativos XR rodando:" -#: client/scenes/stream_gui.cpp:694 +#: client/scenes/stream_gui.cpp:688 msgid "Overlays" msgstr "Overlays" -#: client/scenes/stream_gui.cpp:733 +#: client/scenes/stream_gui.cpp:727 msgid "Request to quit, may be ignored by the application" msgstr "Requisição para sair, pode ser ignorada pelo aplicativo" -#: client/scenes/stream_gui.cpp:983 +#: client/scenes/stream_gui.cpp:977 msgid "Applications" msgstr "Aplicativos" -#: client/scenes/stream_gui.cpp:986 +#: client/scenes/stream_gui.cpp:980 msgid "Start" msgstr "Iniciar" -#: client/scenes/stream_gui.cpp:999 +#: client/scenes/stream_gui.cpp:993 msgid "Stats" msgstr "Estatísticas" -#: client/scenes/stream_gui.cpp:1005 +#: client/scenes/stream_gui.cpp:999 msgid "Statistics overlay" msgstr "Overlay de estatísticas" -#: client/scenes/stream_gui.cpp:1008 +#: client/scenes/stream_gui.cpp:1002 msgid "Compact view" msgstr "Visualização compacta" From c693993748a8d34efbcbbe22bbaaa4e19419ac76 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 2 Feb 2026 15:41:09 +0100 Subject: [PATCH 6/6] Revert "Remove simple_controller binding for hand interaction" This reverts commit 1e2823c0196971caa9b32956a2bd0469b3c9da76. --- server/driver/wivrn_controller.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/server/driver/wivrn_controller.cpp b/server/driver/wivrn_controller.cpp index 3adbb542..c622e6aa 100644 --- a/server/driver/wivrn_controller.cpp +++ b/server/driver/wivrn_controller.cpp @@ -571,6 +571,21 @@ make_binding_profiles() constexpr auto controller_per_hand_binding_profiles = std::to_array({make_binding_profiles<0>(), make_binding_profiles<1>()}); +xrt_binding_input_pair hand_interaction_simple_input_binding[] = { + {XRT_INPUT_SIMPLE_SELECT_CLICK, XRT_INPUT_HAND_PINCH_VALUE}, + {XRT_INPUT_SIMPLE_GRIP_POSE, XRT_INPUT_HAND_GRIP_POSE}, + {XRT_INPUT_SIMPLE_AIM_POSE, XRT_INPUT_HAND_AIM_POSE}, +}; + +xrt_binding_profile hand_interaction_binding_profiles[] = { + { + .name = XRT_DEVICE_SIMPLE_CONTROLLER, + .inputs = hand_interaction_simple_input_binding, + .input_count = std::size(hand_interaction_simple_input_binding), + .outputs = nullptr, + .output_count = 0, + }, +}; } // namespace wivrn_controller::wivrn_controller(xrt_device_name name, @@ -582,8 +597,8 @@ wivrn_controller::wivrn_controller(xrt_device_name name, .device_type = hand_id == 0 ? XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER : XRT_DEVICE_TYPE_RIGHT_HAND_CONTROLLER, .hmd = nullptr, .tracking_origin = hmd->tracking_origin, - .binding_profile_count = name != XRT_DEVICE_EXT_HAND_INTERACTION ? controller_per_hand_binding_profiles[hand_id].size() : 0, - .binding_profiles = name != XRT_DEVICE_EXT_HAND_INTERACTION ? (struct xrt_binding_profile *)controller_per_hand_binding_profiles[hand_id].data() : nullptr, + .binding_profile_count = name != XRT_DEVICE_EXT_HAND_INTERACTION ? controller_per_hand_binding_profiles[hand_id].size() : std::size(hand_interaction_binding_profiles), + .binding_profiles = name != XRT_DEVICE_EXT_HAND_INTERACTION ? (struct xrt_binding_profile *)controller_per_hand_binding_profiles[hand_id].data() : hand_interaction_binding_profiles, .input_count = WIVRN_CONTROLLER_INPUT_COUNT, .supported = { .orientation_tracking = true,