fix: even MORE non global access

This commit is contained in:
2 * r + 2 * t 2026-04-13 16:52:36 +10:00
parent 16a77f0df9
commit 3cffc1ff94
3 changed files with 5 additions and 5 deletions

View file

@ -263,7 +263,7 @@ Item {
function onLastIpcObjectChanged(): void {
if (ws.modelData)
ws.hasWindows = Config.bar.workspaces.showWindowsOnSpecialWorkspaces && ws.modelData.lastIpcObject.windows > 0;
ws.hasWindows = root.Config.bar.workspaces.showWindowsOnSpecialWorkspaces && ws.modelData.lastIpcObject.windows > 0;
}
target: ws.modelData
@ -272,10 +272,10 @@ Item {
Connections {
function onShowWindowsOnSpecialWorkspacesChanged(): void {
if (ws.modelData)
ws.hasWindows = Config.bar.workspaces.showWindowsOnSpecialWorkspaces && ws.modelData.lastIpcObject.windows > 0;
ws.hasWindows = root.Config.bar.workspaces.showWindowsOnSpecialWorkspaces && ws.modelData.lastIpcObject.windows > 0;
}
target: Config.bar.workspaces
target: root.Config.bar.workspaces
}
Loader {

View file

@ -47,7 +47,7 @@ Item {
toasts.push(toast);
if (!toast.closed) {
count++;
if (count > Config.utilities.maxToasts)
if (count > root.Config.utilities.maxToasts)
break;
}
}

View file

@ -43,7 +43,7 @@ class BarWorkspaces : public ConfigObject {
CONFIG_PROPERTY(bool, occupiedBg, false)
CONFIG_PROPERTY(bool, showWindows, true)
CONFIG_PROPERTY(bool, showWindowsOnSpecialWorkspaces, true)
CONFIG_PROPERTY(int, maxWindowIcons, 0)
CONFIG_PROPERTY(int, maxWindowIcons, 5)
CONFIG_PROPERTY(bool, activeTrail, false)
CONFIG_GLOBAL_PROPERTY(bool, perMonitorWorkspaces, true)
CONFIG_PROPERTY(QString, label, QStringLiteral(" "))