From e5afd6e1fe24a898bca900fa32e776a849479df2 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 14 Jul 2025 13:33:08 +0800 Subject: remove !! in workspace --- bar/Workspace.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bar') diff --git a/bar/Workspace.qml b/bar/Workspace.qml index 50b9296..ccfcd57 100644 --- a/bar/Workspace.qml +++ b/bar/Workspace.qml @@ -18,9 +18,9 @@ Item { function getWorkspaceStats(index) { const w = ws.values.find(i => i.id === index + 1); return { - isOccupied: !!(w?.toplevels?.values?.length), - isActive: !!w?.active, - isUrgent: !!w?.urgent + isOccupied: w?.toplevels?.values?.length, + isActive: w?.active, + isUrgent: w?.urgent }; } -- cgit v1.2.3