small adjustments and comments

This commit is contained in:
TechCrafterGaming
2024-04-30 08:07:10 +02:00
parent 7cdb26e822
commit a669fd67c3

View File

@@ -426,6 +426,7 @@ class QtDriver(QObject):
def close_library(self):
if self.lib.library_dir:
# TODO: it is kinda the same code from "save_library"...
logging.info(f'Closing & Saving Library...')
self.main_window.statusbar.showMessage(f'Closed & Saving Library...')
start_time = time.time()
@@ -433,9 +434,7 @@ class QtDriver(QObject):
self.settings.setValue("last_library", self.lib.library_dir)
self.settings.sync()
# FIXME: idk if all this is necessary to reset the window properly
self.lib.clear_internal_vars()
title_text = f'{self.base_title}'
self.main_window.setWindowTitle(title_text)