1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-08 06:25:37 -05:00

Switch to dispatch-style release workflow

This commit is contained in:
bbedward
2025-10-07 12:50:09 -04:00
parent 32d9aa0cf2
commit af8ee5af0f
3 changed files with 69 additions and 40 deletions

View File

@@ -15,19 +15,20 @@ Column {
width: parent.width
spacing: Theme.spacingS
property bool isInitialized: false
function loadValue() {
const settings = findSettings()
if (settings && settings.pluginService) {
value = settings.loadValue(settingKey, defaultValue)
textField.text = value
const loadedValue = settings.loadValue(settingKey, defaultValue)
value = loadedValue
textField.text = loadedValue
isInitialized = true
}
}
Component.onCompleted: {
loadValue()
}
onValueChanged: {
if (!isInitialized) return
const settings = findSettings()
if (settings) {
settings.saveValue(settingKey, value)