Skip to content

Commit 0ead238

Browse files
authored
fix: restore opening last library on startup (#729)
1 parent 9116cdc commit 0ead238

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tagstudio/src/qt/ts_qt.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,11 @@ def create_about_modal():
515515
path_result = self.evaluate_path(str(self.args.open).lstrip().rstrip())
516516
if path_result.success and path_result.library_path:
517517
self.open_library(path_result.library_path)
518+
elif self.settings.value(SettingItems.START_LOAD_LAST):
519+
# evaluate_path() with argument 'None' returns a LibraryStatus for the last library
520+
path_result = self.evaluate_path(None)
521+
if path_result.success and path_result.library_path:
522+
self.open_library(path_result.library_path)
518523

519524
# check ffmpeg and show warning if not
520525
self.ffmpeg_checker = FfmpegChecker()

0 commit comments

Comments
 (0)