mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-05 21:15:38 -05:00
dankbar: try something else for binding
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -479,6 +479,15 @@ PanelWindow {
|
||||
target: rootWindow
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: SettingsData
|
||||
function onBarConfigsChanged() {
|
||||
Qt.callLater(() => {
|
||||
topBarCore.backgroundTransparency = barConfig?.transparency ?? 1.0;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function evaluateReveal() {
|
||||
if (!autoHide)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user