diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-23 16:53:16 +0800 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-23 16:53:16 +0800 |
| commit | 5c5c069b4b3afc44b0dd0f70e3adb9b9a166d789 (patch) | |
| tree | 93ae60303050b835165a9281f9def8e91cda691c /modules | |
| parent | bar: switch to embedded style (diff) | |
| download | caelestia-shell-5c5c069b4b3afc44b0dd0f70e3adb9b9a166d789.tar.gz caelestia-shell-5c5c069b4b3afc44b0dd0f70e3adb9b9a166d789.tar.bz2 caelestia-shell-5c5c069b4b3afc44b0dd0f70e3adb9b9a166d789.zip | |
bar: fix null error
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/bar/components/workspaces/ActiveIndicator.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bar/components/workspaces/ActiveIndicator.qml b/modules/bar/components/workspaces/ActiveIndicator.qml index 0f904a1..4965252 100644 --- a/modules/bar/components/workspaces/ActiveIndicator.qml +++ b/modules/bar/components/workspaces/ActiveIndicator.qml @@ -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 |