mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-01-31 15:19:10 +00:00
Fix Open Library Dialog
Resolve issues where the open library dialog will try to open `.` if no path is returned from the 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