diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-08-02 16:30:15 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-08-02 16:30:29 +0800 |
| commit | 6f64e1f60662850f969c94c6a506c5e40ede0e31 (patch) | |
| tree | 6d57f0493e34d1d66f1f941e99dc53ecb4c4a61d /bar | |
| parent | 05fa3647d355fb4e0798fff1225663b41290f4e8 (diff) | |
ws: remove unused check
Diffstat (limited to 'bar')
| -rw-r--r-- | bar/Workspace.qml | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bar/Workspace.qml b/bar/Workspace.qml index da5f6db..6e85087 100644 --- a/bar/Workspace.qml +++ b/bar/Workspace.qml @@ -19,11 +19,7 @@ Item { property bool activeOccupied: false property bool toChild: false - property real activeRectX: { - if (activeIndex < 0) - return 0; - return layout.x + activeIndex * Bar.wsIconSize + activeIndex * Bar.wsSpacing; - } + property real activeRectX: layout.x + activeIndex * Bar.wsIconSize + activeIndex * Bar.wsSpacing function getWorkspaceStats(index) { const w = ws.values.find(i => i.id === index + 1); |
