mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-02-01 15:49:09 +00:00
Merge pull request #240 from Loran425/bugfix/cancel_library_dialog
Bugfix Open Library Dialog
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user