Skip to content

Commit

Permalink
Merge pull request TagStudioDev#240 from Loran425/bugfix/cancel_libra…
Browse files Browse the repository at this point in the history
…ry_dialog

Bugfix Open Library Dialog
  • Loading branch information
CyanVoxel authored Jun 3, 2024
2 parents 10b90dc + 2d89df6 commit 84a4b2f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tagstudio/src/qt/ts_qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,11 @@ def __init__(self, core: TagStudioCore, args):
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):
Expand Down

0 comments on commit 84a4b2f

Please sign in to comment.