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:
co-authored by
HttpAnimations
parent
f3ebe5798e
commit
9dfb821853
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user