diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-14 13:33:08 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-14 13:33:08 +0800 |
| commit | e5afd6e1fe24a898bca900fa32e776a849479df2 (patch) | |
| tree | 8d55e89abfa407b788b2c66fbf9ee3f8ad1db309 /bar | |
| parent | e8693ce20bec91364a078619a179cb8ab5a269a3 (diff) | |
remove !! in workspace
Diffstat (limited to 'bar')
| -rw-r--r-- | bar/Workspace.qml | 6 |
1 files changed, 3 insertions, 3 deletions
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 }; } |
