mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-02-27 03:33:48 +00:00
Merge pull request #101 from TechCrafterGaming/FIX-002
This commit is contained in:
@@ -398,7 +398,7 @@ class QtDriver(QObject):
|
||||
|
||||
|
||||
def callback_library_needed_check(self,func):
|
||||
#Check if loaded library has valid path before executing the button function
|
||||
"""Check if loaded library has valid path before executing the button function"""
|
||||
if self.lib.library_dir:
|
||||
func()
|
||||
|
||||
@@ -407,7 +407,7 @@ class QtDriver(QObject):
|
||||
self.shutdown()
|
||||
|
||||
def shutdown(self):
|
||||
# Save Library on Application Exit
|
||||
"""Save Library on Application Exit"""
|
||||
if self.lib.library_dir:
|
||||
self.save_library()
|
||||
self.settings.setValue("last_library", self.lib.library_dir)
|
||||
|
||||
Reference in New Issue
Block a user