From 3cffc1ff944adbb1beeaf2e0c8bf8ed88aa0175f Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 13 Apr 2026 16:52:36 +1000 Subject: [PATCH] fix: even MORE non global access --- modules/bar/components/workspaces/SpecialWorkspaces.qml | 6 +++--- modules/utilities/toasts/Toasts.qml | 2 +- plugin/src/Caelestia/Config/barconfig.hpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/bar/components/workspaces/SpecialWorkspaces.qml b/modules/bar/components/workspaces/SpecialWorkspaces.qml index cafecb7b..f45191f6 100644 --- a/modules/bar/components/workspaces/SpecialWorkspaces.qml +++ b/modules/bar/components/workspaces/SpecialWorkspaces.qml @@ -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 { diff --git a/modules/utilities/toasts/Toasts.qml b/modules/utilities/toasts/Toasts.qml index bceb4ea6..cce8b9f2 100644 --- a/modules/utilities/toasts/Toasts.qml +++ b/modules/utilities/toasts/Toasts.qml @@ -47,7 +47,7 @@ Item { toasts.push(toast); if (!toast.closed) { count++; - if (count > Config.utilities.maxToasts) + if (count > root.Config.utilities.maxToasts) break; } } diff --git a/plugin/src/Caelestia/Config/barconfig.hpp b/plugin/src/Caelestia/Config/barconfig.hpp index 8def7921..6397064f 100644 --- a/plugin/src/Caelestia/Config/barconfig.hpp +++ b/plugin/src/Caelestia/Config/barconfig.hpp @@ -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(" "))