1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

dankbar: try something else for binding

This commit is contained in:
bbedward
2025-11-29 22:43:55 -05:00
parent b7572f727f
commit 202cf4bcc9
2 changed files with 10 additions and 4 deletions

View File

@@ -120,10 +120,7 @@ Item {
delegate: Loader {
id: barLoader
required property var modelData
property var barConfig: {
SettingsData.barConfigs;
return SettingsData.getBarConfig(modelData.id);
}
property var barConfig: SettingsData.barConfigs.find(cfg => cfg.id === modelData.id) || null
active: barConfig?.enabled ?? false
asynchronous: false