mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
fix crash with device list
This commit is contained in:
@@ -130,7 +130,7 @@ class DeviceManager:
|
|||||||
|
|
||||||
## CURRENT DEVICE
|
## CURRENT DEVICE
|
||||||
def set_current_device(self, index: int = None):
|
def set_current_device(self, index: int = None):
|
||||||
if index == None:
|
if index == None or len(self.devices) == 0:
|
||||||
self.data_singleton.current_device = None
|
self.data_singleton.current_device = None
|
||||||
self.data_singleton.device_available = False
|
self.data_singleton.device_available = False
|
||||||
self.data_singleton.gestalt_path = None
|
self.data_singleton.gestalt_path = None
|
||||||
|
|||||||
Reference in New Issue
Block a user