Skip to content

Commit

Permalink
Try adding cleanup in QtImageDirectoryWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
talmo committed Dec 17, 2024
1 parent 7fb50a8 commit 00618a9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sleap/gui/widgets/imagedir.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ def __init__(

self.resize(360, 400)

# Call cleanup method when application exits to end worker thread.
# Note: This is commented out in favor of the MainWindow.closeEvent() path.
self.destroyed.connect(self.cleanup)
# app = QApplication.instance()
# if app:
# app.aboutToQuit.connect(self.cleanup)

if self.filters:
self.filter_menu = QtWidgets.QComboBox()
self.filter_menu.addItems([filter[0] for filter in self.filters])
Expand Down

0 comments on commit 00618a9

Please sign in to comment.