mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
fix crash when no usb device is detected but wifi is & wifi is off
This commit is contained in:
@@ -99,6 +99,8 @@ class DeviceManager:
|
||||
print(f"ERROR with lockdown device with UUID {device.serial}")
|
||||
show_error_msg(type(e).__name__ + ": " + repr(e))
|
||||
connected_devices.remove(device)
|
||||
else:
|
||||
connected_devices.remove(device)
|
||||
|
||||
if len(connected_devices) > 0:
|
||||
self.set_current_device(index=0)
|
||||
|
||||
Reference in New Issue
Block a user