Integrity check for the configuration parser
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
@@ -40,9 +40,9 @@ class UIPreferences(QObject):
|
||||
def load_preferences_ui(self):
|
||||
""" Loading all the initial preferences from the conf file to the UI
|
||||
"""
|
||||
self.load_material_accent.emit(CONFIGURE_QT.get_or_default("Material", "Accent", "Green"))
|
||||
self.load_material_theme.emit(CONFIGURE_QT.get_or_default("Material", "Theme", "System"))
|
||||
self.load_autoload.emit(int(CONFIGURE_QT.get_or_default("Database", "autoload", 0)))
|
||||
self.load_material_accent.emit(CONFIGURE_QT.value("Material", "Accent", "Green"))
|
||||
self.load_material_theme.emit(CONFIGURE_QT.value("Material", "Theme", "System"))
|
||||
self.load_autoload.emit(int(CONFIGURE_QT.value("Database", "autoload", 0)))
|
||||
self.show_ui.emit()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user