summaryrefslogtreecommitdiff
path: root/modules/bar/components/workspaces/ActiveIndicator.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-23 16:53:16 +0800
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-23 16:53:16 +0800
commit5c5c069b4b3afc44b0dd0f70e3adb9b9a166d789 (patch)
tree93ae60303050b835165a9281f9def8e91cda691c /modules/bar/components/workspaces/ActiveIndicator.qml
parentbar: switch to embedded style (diff)
downloadcaelestia-shell-5c5c069b4b3afc44b0dd0f70e3adb9b9a166d789.tar.gz
caelestia-shell-5c5c069b4b3afc44b0dd0f70e3adb9b9a166d789.tar.bz2
caelestia-shell-5c5c069b4b3afc44b0dd0f70e3adb9b9a166d789.zip
bar: fix null error
Diffstat (limited to 'modules/bar/components/workspaces/ActiveIndicator.qml')
-rw-r--r--modules/bar/components/workspaces/ActiveIndicator.qml2
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