Merge pull request #240 from Loran425/bugfix/cancel_library_dialog

Bugfix Open Library Dialog
This commit is contained in:
Travis Abendshien 2024-06-02 22:54:51 -07:00 committed by GitHub
commit 84a4b2f0cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -223,13 +223,11 @@ class QtDriver(QObject):
thread.start()
def open_library_from_dialog(self):
dir = Path(
QFileDialog.getExistingDirectory(
None, "Open/Create Library", "/", QFileDialog.ShowDirsOnly
)
dir = QFileDialog.getExistingDirectory(
None, "Open/Create Library", "/", QFileDialog.ShowDirsOnly
)
if dir not in (None, ""):
self.open_library(dir)
self.open_library(Path(dir))
def signal_handler(self, sig, frame):
if sig in (SIGINT, SIGTERM, SIGQUIT):