Skip to content

Commit

Permalink
Merge pull request #122 from abby-freakazoid/bugfix/validate-library-…
Browse files Browse the repository at this point in the history
…path-before-open/#118

Fix library reopen doesn't check if path is valid #118
  • Loading branch information
CyanVoxel committed May 2, 2024
2 parents a1fcd23 + 99a0bfe commit ea8d954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tagstudio/src/qt/ts_qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def start(self):

# Check if a library should be opened on startup, args should override last_library
# TODO: check for behavior (open last, open default, start empty)
if self.args.open or self.settings.contains("last_library"):
if self.args.open or self.settings.contains("last_library") and os.path.isdir(self.settings.value("last_library")):
if self.args.open:
lib = self.args.open
elif self.settings.value("last_library"):
Expand Down

0 comments on commit ea8d954

Please sign in to comment.