From 6f64e1f60662850f969c94c6a506c5e40ede0e31 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 2 Aug 2025 16:30:15 +0800 Subject: ws: remove unused check --- bar/Workspace.qml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'bar') 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); -- cgit v1.2.3