Added DB autoload on startup option

This commit is contained in:
Marco Dalla Tiezza
2024-06-06 19:06:45 +02:00
parent faf9a5293a
commit 485eccb373
6 changed files with 223 additions and 165 deletions

View File

@@ -6401,71 +6401,77 @@ Mode: Image.Pres\
erveAspectFit\x0d\x0a \
}\x0d\x0a }\x0d\
\x0a}\x0d\x0a\
\x00\x00\x03\xf0\
\x00\x00\x04P\
\x00\
\x00\x0f\xd5x\xda\xddWQo\xdb6\x10~/\xd0\xff\
\xc0\xea\xc9F7\xc5i;lp\x97\x07\xdb\x05\xda\x00\
\x0d\x9a&\x19\x8aa\xd8\x03-\x9dd\xc2\x14\xa9\x90T\
\x1co\xf5\x7f\xdf\x91\xb4b\xc9\xa6%\x17(P`J\
\x90\x90\xbc\xef\x8e\xc7\xe3\xdd\xf1\x8e\x15\xa5T\x86|6\
\x9f+\x96,\x9f?c\xady\xfc\x85\x89T\xae\x0e\x96\
gR\x18%\xb9>J\x88\xaf\xa8\x01\xc5(?@|\
\xa4kY\x19\xe4\xb4?^<\xf9\xf7\xf93\x82\x1fK\
\xc7d\xe5V\xae\x15d\xa0@$\xe0\x80\x96\xb8b\xa9\
Y\x8c\xc9\x9b_F~\xbe\x00\x96/\x0c.\x8cF5\
d&q+\x01\xc2\xc4R\xd81\x07\x03(r+\xdd\
~\x8f\xe4\x82\xdc&\x0a@\xc4N\x1e9#\xaf\xc8\xcf\
\xe4i\xbcC\xaewH\xbf\xd3\x16\xba\x9bx\xec\xa6\xde\
\xbc\x90)\xe5\xcc\xac\xc7x\xd2xR\x96\x9c%\xd40\
)\xae\xec\xba\x87d\x9c\xe6\xda\xd1k\xb3\xfau\xc3\x0c\
\x871\xb9\xd7wj\x10M\x94\x81\x82i\xdc\xaaa\x84\
hXc5\xcb\x05\xe5D\xd3\x07\xa8M<I\x12<\
\xf3@\x1b\xc5DN\xa8\xca\x87G\xa1w\x0b(\xa0\x8d\
\xdc\xaaV\x89\xc4j\xeb\xd0\x13\xce\x07\xc3\xa6\xd9\x02\x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\x92\xbe\x1c\xd8\x93\xfb\xbei\xd7\xa0+\x82\x96?\
\x1e\xe8\xe4\xf3\xeb\x07\xa8i\x9fC\x1b\x96\xd0\xe6\x96\xd8\
\xfe\x0bm\x972F\x97\x87Vhv\x8a\x7f_\xa4\xe9\
\x8f\xea\x87>\xb7\x1e\x9b\xfc\xff\x02j\xe6B\xc4\
\x00\x00\x03~\
\x00\
\x00\x160x\xda\xcdX[O\xdb0\x14~G\xe2?\
@@ -6967,48 +6973,48 @@ J\x93\xaaV\xd6\xaf/\xb0\xf74W\x06\xa8\xe9\x12\xf3\
\xd0\xba\xc4\xc4O\x17\x87\x07]\x12\xd6Nz\xf7Jo\
\xed\x22\x0e\xaf\xd9\x97\x9b\xa4\xb6\x81b\xcdy\xc6\x0d\xb7\
\x85#\x15C\xeb\x87\xf9\xff\x0b\x83\x18\xec\xb5\
\x00\x00\x02v\
\x00\x00\x02|\
\x00\
\x00\x10\x1dx\xda\xed\x97]o\x9b0\x14\x86\xef'\xed\
?X\x99T5\xbb@\x06BH\xd1:)\xca\x90\x9a\
)i\x15B\xd3k>Lb\xcd\xc1\x0c\xcc\x9au\xca\
\x7f\x1f\x84|`\x0c\xcd\xd2IU.\xe2\xe4\x02\xdb\xaf\
_\x1f\xfb9\x80\xc1\xcb\x88\xc6\x0cL\xd8$\xc5\xde\x8f\
\x8f\x1f0W\x97\x9ep\xe8\xd3g\xa1y@C\x16S\
\x924vHc\x87\xa1\x18;DP\x8c\x9c\xdf4e\
\xd9\xc8\xfc7dh\x09\xfe\xe4W +A\x1az\x0c\
\xd3\x10$\x88\x8d\xf0|\xc1\x92kg\x18\xfah\xd5\xce\
5`[bt\xe8n\x1f\x9aq\x00\xb6j\xf0\xf5\x16\
@pu\x05\xb6\xd5/\xa0\xc7\x19\x14&\x1e\x83\x92G\
\x09\x8d\xc1-h}\xd2\xd4\x1b7\x08Z\x07\xd1\x1a \
\x92\xa0\x8ak\x8fs\x95\xbb\xb5\xb6r\xc9\x16z^\xd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\x93\xedS\x92,\x83|\
O\x15\xa7h\x07\xee\x82F\xb1\xe0cBt\x10\xda\x11\
\x0a\xd8\xa17\x0em\x17\x07s\x1d\xc0\x9dOV\xcc\xf4\
\x8ev0'\xa8\x8c\x00{z\x1e\x0e\xdf\xbc\x89M/\
\x87\xb6+yL\x9b\x00\x9e\xb0\xc7\x16:`Q\x82\x1a\
5\xf7(\x03U'r\x09\x0e\xeb\xda\x19\x0d\x87\xc8g\
\xa6\xed\xe1$\xd6\xd3\xdc\xa9t\x9b\x99eS\xff\xd0v\
\x10)\xcft3\x10\xad\xd28~\xc6Vt\xdd\x9a\x1a\
3\xc34\xc0\xd4\x1a\x9b\xa3V\xbb\xaa}}\x99w%\
\x95\xe0\x97\xf4\xc1h\x93\x1e\xc1\xf3`\x99\x8at`\xa5\
\xb7\x116\xf5\xfb~\xda\x80\xa2\xea\xb8g\x141\xec6\
\x8c\x9a5\x8d\xf2\xd3;\x09\x0e%^\xdd\xa2\xed\x05!\
^!2\xc5/h\x17\xb6\xb0\xd8\x10\xf8\x0c\x05\x89\x1f\
\xb2\xe6\xb6\xda\x1b\xd2EiH\x97J\xaa\xbfK\xba\xfc\
\x1bo\xcb\x1c?|\xbf\xf0>\x89\xb7\xdc\xc8\xbb\xf4\xec\
;\x1f\xde\xa3\xf1\x9da\xf6\xac\xcb\x0e?\x8d\xb8\xd4\xf4\
B(\xbf\x0e\xcf\x87x\xafo\x0df\xc6\x97\x0b\xefS\
x\x8b\x0d\xbc+\xe7\xa3\xf3\xe1\xfd\xf805,kh\
\xdc]`\xbf\x116l\x80]9-\xbf\x0bl\x872\
F\x97\xaf\x1d\xf8r\xc5\xff\x9f\xf9&\x8f\x03\xc3\xbad\
K\xe1\xbb*\xfd\xff\x05CN\x09\xae\
"
qt_resource_name = b"\
@@ -7270,17 +7276,17 @@ qt_resource_struct = b"\
\x00\x00\x01\x8f\xcb\x84\x8f\xb2\
\x00\x00\x03<\x00\x01\x00\x00\x00\x01\x00\x01>\xe2\
\x00\x00\x01\x8f\xe9\xc7\xa9\x5c\
\x00\x00\x05\xa8\x00\x00\x00\x00\x00\x01\x00\x01\x9e\x83\
\x00\x00\x05\xa8\x00\x00\x00\x00\x00\x01\x00\x01\x9e\xe3\
\x00\x00\x01\x8f\xcb\x83\x89\xfd\
\x00\x00\x03r\x00\x01\x00\x00\x00\x01\x00\x01I\x0c\
\x00\x00\x01\x8f\xe4\x8f\x92\xee\
\x00\x00\x05\x86\x00\x00\x00\x00\x00\x01\x00\x01\x98\xd4\
\x00\x00\x05\x86\x00\x00\x00\x00\x00\x01\x00\x01\x994\
\x00\x00\x01\x8f\xc8\xd7c\x19\
\x00\x00\x03X\x00\x02\x00\x00\x00\x04\x00\x00\x00+\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x04\xc4\x00\x01\x00\x00\x00\x01\x00\x01v7\
\x00\x00\x01\x8f\xe4\x96f\xc0\
\x00\x00\x05d\x00\x01\x00\x00\x00\x01\x00\x01\x8e\xeb\
\x00\x00\x05d\x00\x01\x00\x00\x00\x01\x00\x01\x8fK\
\x00\x00\x01\x8f\xe4\x96PE\
\x00\x00\x04\xe6\x00\x01\x00\x00\x00\x01\x00\x01\x7f-\
\x00\x00\x01\x8f\xcb\x83z\xd6\
@@ -7291,16 +7297,16 @@ qt_resource_struct = b"\
\x00\x00\x04\x9e\x00\x01\x00\x00\x00\x01\x00\x01t\x09\
\x00\x00\x01\x8f\xd301\xb9\
\x00\x00\x05@\x00\x01\x00\x00\x00\x01\x00\x01\x8a\xf7\
\x00\x00\x01\x8f\xe4\x8e\xdd\xf9\
\x00\x00\x01\x8f\xee\x84(\xe5\
\x00\x00\x05\x06\x00\x00\x00\x00\x00\x01\x00\x01\x85\xce\
\x00\x00\x01\x8f\xe4\x8f\x0e\x0f\
\x00\x00\x05\xdc\x00\x01\x00\x00\x00\x01\x00\x01\xa76\
\x00\x00\x05\xdc\x00\x01\x00\x00\x00\x01\x00\x01\xa7\x96\
\x00\x00\x01\x8f\xee>\xc2\xd2\
\x00\x00\x06$\x00\x01\x00\x00\x00\x01\x00\x01\xad\xdb\
\x00\x00\x01\x8f\xeeO\xac\x19\
\x00\x00\x05\xc0\x00\x01\x00\x00\x00\x01\x00\x01\xa4\x93\
\x00\x00\x01\x8f\xc8\xd7c\x19\
\x00\x00\x06$\x00\x01\x00\x00\x00\x01\x00\x01\xadw\
\x00\x00\x01\x8f\xc8\xd7c\x19\
\x00\x00\x05\xc0\x00\x01\x00\x00\x00\x01\x00\x01\xa43\
\x00\x00\x01\x8f\xc8\xd7c\x19\
\x00\x00\x06\x00\x00\x01\x00\x00\x00\x01\x00\x01\xa9\xf5\
\x00\x00\x06\x00\x00\x01\x00\x00\x00\x01\x00\x01\xaaY\
\x00\x00\x01\x8f\xe4\xc6\xf5\xd8\
"

View File

@@ -10,6 +10,7 @@ from artemis.utils.path_utils import DATA_DIR
from artemis.utils.network_utils import NetworkManager
from artemis.utils.generic_utils import generate_filter_query
from artemis.utils.path_utils import normalize_dialog_path
from artemis.utils.config_utils import CONFIGURE_QT
from artemis.ui.preferences import UIPreferences
from artemis.ui.dbmanager import UIdbmanager
@@ -69,6 +70,8 @@ class UIArtemis(QObject):
self.network_manager = NetworkManager(self)
self.autoload_db()
def _connect(self):
# QML > Python connections
@@ -331,6 +334,13 @@ class UIArtemis(QObject):
self.cateditor.load_cateditor_ui()
def autoload_db(self):
sig_id_path = DATA_DIR / 'SigID' / Constants.SQL_NAME
autoload = CONFIGURE_QT.get_or_default("Database", "autoload", 0)
if sig_id_path.exists() and int(autoload):
self.load_db('SigID')
def dialog_popup(self, message_type, title, message):
""" Opens a general dialog popup

View File

@@ -9,6 +9,7 @@ class UIPreferences(QObject):
show_ui = Signal()
load_material_accent = Signal(str)
load_material_theme = Signal(str)
load_autoload = Signal(int)
def __init__(self, parent):
@@ -27,11 +28,13 @@ class UIPreferences(QObject):
# QML > Python connections
self._window.saveMaterialAccent.connect(self.save_material_accent)
self._window.saveMaterialTheme.connect(self.save_material_theme)
self._window.saveAutoload.connect(self.save_autoload)
# Python > QML connections
self.show_ui.connect(self._window.show)
self.load_material_accent.connect(self._window.loadMaterialAccent)
self.load_material_theme.connect(self._window.loadMaterialTheme)
self.load_autoload.connect(self._window.loadAutoload)
def load_preferences_ui(self):
@@ -39,6 +42,7 @@ class UIPreferences(QObject):
"""
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.show_ui.emit()
@@ -54,3 +58,10 @@ class UIPreferences(QObject):
""" Saving material theme setting
"""
CONFIGURE_QT.set("Material", "Theme", material_theme)
@Slot(int)
def save_autoload(self, autoload):
""" Saving autoload setting
"""
CONFIGURE_QT.set("Database", "autoload", str(autoload))

View File

@@ -32,10 +32,13 @@ class Config(ConfigParser):
self.write(f, space_around_delimiters=self._space_around_delimiters)
if not (PREFERENCES_DIR / 'qtquickcontrols2.conf').exists():
copy_file(
BASE_DIR / 'config' / 'qtquickcontrols2.conf',
PREFERENCES_DIR / 'qtquickcontrols2.conf'
)
def prepare_qt_conf():
if not (PREFERENCES_DIR / 'qtquickcontrols2.conf').exists():
copy_file(
BASE_DIR / 'config' / 'qtquickcontrols2.conf',
PREFERENCES_DIR / 'qtquickcontrols2.conf'
)
prepare_qt_conf()
CONFIGURE_QT = Config((PREFERENCES_DIR / 'qtquickcontrols2.conf').resolve().as_posix())