Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
fix crash with device list
Browse files Browse the repository at this point in the history
  • Loading branch information
leminlimez committed Nov 19, 2024
1 parent 9ec6e61 commit c85b60d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devicemanagement/device_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_devices(self, settings: QSettings):

## CURRENT DEVICE
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.device_available = False
self.data_singleton.gestalt_path = None
Expand Down

0 comments on commit c85b60d

Please sign in to comment.