diff options
| author | sweenu <contact@sweenu.xyz> | 2025-09-01 12:58:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-01 20:58:04 +1000 |
| commit | 42f0f317ca047142e62d3a05e4d66b852ad64dba (patch) | |
| tree | ff0e20c26d35ff6866199699400c76c2d67ce3af /modules/bar/components/workspaces | |
| parent | dashboard/media: slightly improve media seeking (diff) | |
| download | caelestia-shell-42f0f317ca047142e62d3a05e4d66b852ad64dba.tar.gz caelestia-shell-42f0f317ca047142e62d3a05e4d66b852ad64dba.tar.bz2 caelestia-shell-42f0f317ca047142e62d3a05e4d66b852ad64dba.zip | |
bar/workspaces: different `showWindows` option for special ws (#544)
Diffstat (limited to 'modules/bar/components/workspaces')
| -rw-r--r-- | modules/bar/components/workspaces/SpecialWorkspaces.qml | 8 |
1 files changed, 4 insertions, 4 deletions
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; } } |