mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
workspace: fix ext-ws hiding
This commit is contained in:
@@ -438,11 +438,9 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
readonly property bool hasWorkspaces: {
|
readonly property bool hasNativeWorkspaceSupport: CompositorService.isNiri || CompositorService.isHyprland || CompositorService.isDwl || CompositorService.isSway
|
||||||
const realWorkspaces = getRealWorkspaces()
|
readonly property bool hasWorkspaces: getRealWorkspaces().length > 0
|
||||||
return realWorkspaces.length > 0
|
readonly property bool shouldShow: hasNativeWorkspaceSupport || (useExtWorkspace && hasWorkspaces)
|
||||||
}
|
|
||||||
readonly property bool shouldShow: (CompositorService.isNiri || CompositorService.isHyprland || CompositorService.isDwl || CompositorService.isSway || useExtWorkspace) && hasWorkspaces
|
|
||||||
|
|
||||||
width: shouldShow ? (isVertical ? barThickness : visualWidth) : 0
|
width: shouldShow ? (isVertical ? barThickness : visualWidth) : 0
|
||||||
height: shouldShow ? (isVertical ? visualHeight : barThickness) : 0
|
height: shouldShow ? (isVertical ? visualHeight : barThickness) : 0
|
||||||
|
|||||||
Reference in New Issue
Block a user