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

@@ -23,10 +23,12 @@ Window {
signal saveMaterialAccent(string arg)
signal saveMaterialTheme(string arg)
signal saveAutoload(int arg)
function saveAll() {
saveMaterialAccent(comboBoxAccent.currentText)
saveMaterialTheme(comboBoxTheme.currentText)
saveAutoload(checkBoxAutoload.checked)
}
function loadMaterialAccent(accent) {
@@ -47,6 +49,14 @@ Window {
}
}
function loadAutoload(toggle) {
if (toggle) {
checkBoxAutoload.checked = true
} else {
checkBoxAutoload.checked = false
}
}
DialogMessage {
id: dialogPreferencesSaved
modal: true
@@ -132,6 +142,21 @@ Window {
}
}
RowLayout {
Layout.fillWidth: true
Label {
text: "Auto-load SigID Database on Startup"
font.pixelSize: 12
clip: true
Layout.fillWidth: true
}
CheckBox {
id: checkBoxAutoload
}
}
Item {
Layout.fillHeight: true
}