Implement auto-connect feature (#915)

* Auto connect

* Move setting for auto usb to the applcation autostart

---------

Co-authored-by: HttpAnimations <shawndouglasyt@gmail.com>
This commit is contained in:
HttpAnimations
2026-05-17 20:18:20 +02:00
committed by GitHub
co-authored by HttpAnimations
parent f3ebe5798e
commit 9dfb821853
3 changed files with 15 additions and 0 deletions
+4
View File
@@ -76,5 +76,9 @@ Kirigami.MenuDialog {
select_usb_device.connected_headset_count = nb_found;
if (nb_found != 1)
select_usb_device.connected_headset_serial = "";
if (DashboardSettings.auto_connect_usb && nb_found == 1 && !WivrnServer.headsetConnected) {
Adb.startUsbConnection(select_usb_device.connected_headset_serial, WivrnServer.pin);
}
}
}