fix minor issues

This commit is contained in:
lucy 2026-05-20 18:45:51 +00:00
commit dcffca728d
4 changed files with 18 additions and 19 deletions

View file

@ -21,7 +21,7 @@ Rectangle {
color: 'transparent'
clip: true
StyledText {
property bool onWs: Hyprland.activeToplevel.workspace == Hyprland.focusedWorkspace
property bool onWs: Hyprland.activeToplevel?.workspace == Hyprland.focusedWorkspace
text: onWs ? Hyprland.activeToplevel?.title ?? "Desktop" : "Desktop"
elide: Text.ElideRight
}

View file

@ -29,7 +29,6 @@ Rectangle {
model: Hyprland.workspaces
delegate: Rectangle {
id: wsWrapper
anchors.verticalCenter: parent.verticalCenter
implicitHeight: root.moduleHeight - 4
implicitWidth: modelData.active ? 48 : 24
parent: wsLayout