From 5432ed67afe8c845738a0c9de6dc4c9201289e5d Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 2 Aug 2025 16:35:45 +0800 Subject: ws: remove redundant var --- bar/Workspace.qml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bar/Workspace.qml b/bar/Workspace.qml index 6e85087..e04ad75 100644 --- a/bar/Workspace.qml +++ b/bar/Workspace.qml @@ -19,8 +19,6 @@ Item { property bool activeOccupied: false property bool toChild: false - property real activeRectX: layout.x + activeIndex * Bar.wsIconSize + activeIndex * Bar.wsSpacing - function getWorkspaceStats(index) { const w = ws.values.find(i => i.id === index + 1); return { @@ -59,7 +57,7 @@ Item { } IRect { id: activeRect - x: activeRectX + x: layout.x + activeIndex * Bar.wsIconSize + activeIndex * Bar.wsSpacing anchors.verticalCenter: layout.verticalCenter implicitWidth: Bar.wsActiveIconSize implicitHeight: Bar.wsIconSize - Bar.wsHorizontalSpacing @@ -205,7 +203,6 @@ Item { root.activeIndex = index; root.activeOccupied = st.isOccupied; activeRect.implicitWidth = Bar.wsActiveIconSize; - activeRect.x = activeRectX; } } } -- cgit v1.2.3