Skip to content

Commit

Permalink
Fix quit on device unconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanIFitch committed May 7, 2024
1 parent a7b12c0 commit e2348da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/BufferLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ def get_sample_rate(self):

def quit(self):
self.may_start = False
if hasattr(self, "device") and self.device.acquiring:
if self.device is not None and self.device.acquiring:
self.device.stop()
self.device.close_device()
1 change: 0 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def main():
# Use XCB platform for Qt
# Wayland does not render drop shadows or toolbar colors and offsets popups
os.environ["QT_QPA_PLATFORM"] = "xcb"
#qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.

base_dir = get_base_directory()
config_file_path = os.path.join(base_dir, "settings.json")
Expand Down

0 comments on commit e2348da

Please sign in to comment.