From ad31a8dfccdc254ddcfda14076ebca4c5730c37b Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 13 Dec 2025 09:16:04 +0100 Subject: [PATCH] Add USB tooltip in wizard --- dashboard/qml/WizardPage.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dashboard/qml/WizardPage.qml b/dashboard/qml/WizardPage.qml index defb4a55..1f3c3b1d 100644 --- a/dashboard/qml/WizardPage.qml +++ b/dashboard/qml/WizardPage.qml @@ -374,6 +374,16 @@ Kirigami.ScrollablePage { text: i18n("Connect by USB") onClicked: select_usb_device.connect() enabled: select_usb_device.connected_headset_count > 0 + + Controls.ToolTip.visible: WivrnServer.serverStatus == WivrnServer.Started&& hovered + Controls.ToolTip.delay: Kirigami.Units.toolTipDelay + Controls.ToolTip.text: { + if (!Adb.adbInstalled) + return i18n("ADB is not installed"); + if (select_usb_device.connected_headset_count == 0) + return i18n("No headset is connected or your headset is not in developer mode"); + return ""; + } } } Controls.Label {