From 0ead238aac33af33a439bb1bdc1e5d45bea30d73 Mon Sep 17 00:00:00 2001 From: SkeleyM <86805089+SkeleyM@users.noreply.github.com> Date: Fri, 24 Jan 2025 21:38:42 +0000 Subject: [PATCH] fix: restore opening last library on startup (#729) --- tagstudio/src/qt/ts_qt.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tagstudio/src/qt/ts_qt.py b/tagstudio/src/qt/ts_qt.py index 046e9344..8d0f41bb 100644 --- a/tagstudio/src/qt/ts_qt.py +++ b/tagstudio/src/qt/ts_qt.py @@ -515,6 +515,11 @@ class QtDriver(DriverMixin, QObject): path_result = self.evaluate_path(str(self.args.open).lstrip().rstrip()) if path_result.success and path_result.library_path: self.open_library(path_result.library_path) + elif self.settings.value(SettingItems.START_LOAD_LAST): + # evaluate_path() with argument 'None' returns a LibraryStatus for the last library + path_result = self.evaluate_path(None) + if path_result.success and path_result.library_path: + self.open_library(path_result.library_path) # check ffmpeg and show warning if not self.ffmpeg_checker = FfmpegChecker()