mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-30 13:53:02 -08:00
Hide USB text once connected
This commit is contained in:
1 parent
542b9822cf
commit
0d5aa4d887
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user