bar: fix null error
This commit is contained in:
parent
36f28f7c42
commit
5c5c069b4b
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ Rectangle {
|
|||
required property real maskHeight
|
||||
required property int groupOffset
|
||||
|
||||
readonly property Workspace currentWs: workspaces[Hyprland.activeWsId - 1 - groupOffset]
|
||||
readonly property Workspace currentWs: workspaces[Hyprland.activeWsId - 1 - groupOffset] ?? null
|
||||
property real leading: (vertical ? currentWs?.y : currentWs?.x) ?? 0
|
||||
property real trailing: (vertical ? currentWs?.y : currentWs?.x) ?? 0
|
||||
property real currentSize: (currentWs?.size) ?? 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue