diff options
| -rw-r--r-- | config/BarConfig.qml | 1 | ||||
| -rw-r--r-- | modules/bar/components/workspaces/SpecialWorkspaces.qml | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/config/BarConfig.qml b/config/BarConfig.qml index a4a87ec..b8d83e6 100644 --- a/config/BarConfig.qml +++ b/config/BarConfig.qml @@ -58,6 +58,7 @@ JsonObject { property bool activeIndicator: true property bool occupiedBg: false property bool showWindows: true + property bool showWindowsOnSpecialWorkspaces: showWindows property bool activeTrail: false property bool perMonitorWorkspaces: true property string label: " " diff --git a/modules/bar/components/workspaces/SpecialWorkspaces.qml b/modules/bar/components/workspaces/SpecialWorkspaces.qml index 5f9202d..7bebe41 100644 --- a/modules/bar/components/workspaces/SpecialWorkspaces.qml +++ b/modules/bar/components/workspaces/SpecialWorkspaces.qml @@ -132,7 +132,7 @@ Item { Component.onCompleted: { wsId = modelData.id; icon = Icons.getSpecialWsIcon(modelData.name); - hasWindows = Config.bar.workspaces.showWindows && modelData.lastIpcObject.windows > 0; + hasWindows = Config.bar.workspaces.showWindowsOnSpecialWorkspaces && modelData.lastIpcObject.windows > 0; } // Hacky thing cause modelData gets destroyed before the remove anim finishes @@ -151,16 +151,16 @@ Item { function onLastIpcObjectChanged(): void { if (ws.modelData) - ws.hasWindows = Config.bar.workspaces.showWindows && ws.modelData.lastIpcObject.windows > 0; + ws.hasWindows = Config.bar.workspaces.showWindowsOnSpecialWorkspaces && ws.modelData.lastIpcObject.windows > 0; } } Connections { target: Config.bar.workspaces - function onShowWindowsChanged(): void { + function onShowWindowsOnSpecialWorkspacesChanged(): void { if (ws.modelData) - ws.hasWindows = Config.bar.workspaces.showWindows && ws.modelData.lastIpcObject.windows > 0; + ws.hasWindows = Config.bar.workspaces.showWindowsOnSpecialWorkspaces && ws.modelData.lastIpcObject.windows > 0; } } |