fix crash when no usb device is detected but wifi is & wifi is off

This commit is contained in:
leminlimez
2024-10-29 22:30:48 -04:00
parent 17b534e733
commit 784421ef50

View File

@@ -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)