Integrity check for the configuration parser

This commit is contained in:
Marco Dalla Tiezza
2024-06-06 22:34:51 +02:00
parent c7c53b5a68
commit 7db68ab2ad
4 changed files with 50 additions and 19 deletions

View File

@@ -336,7 +336,7 @@ class UIArtemis(QObject):
def autoload_db(self):
sig_id_path = DATA_DIR / 'SigID' / Constants.SQL_NAME
autoload = CONFIGURE_QT.get_or_default("Database", "autoload", 0)
autoload = CONFIGURE_QT.value("Database", "autoload", 0)
if sig_id_path.exists() and int(autoload):
self.load_db('SigID')