diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-08-02 16:35:45 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-08-02 16:36:10 +0800 |
| commit | 5432ed67afe8c845738a0c9de6dc4c9201289e5d (patch) | |
| tree | 5bd990bc0c37a7a27867aa521ea578086268d08a | |
| parent | 6f64e1f60662850f969c94c6a506c5e40ede0e31 (diff) | |
ws: remove redundant var
| -rw-r--r-- | bar/Workspace.qml | 5 |
1 files changed, 1 insertions, 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; } } } |
