Merge pull request #105 from anasgets111/main
stop showing negative workspaces (till proper way of dealing with them
This commit is contained in:
commit
7edb670584
1 changed files with 19 additions and 16 deletions
|
|
@ -86,15 +86,18 @@ Singleton {
|
||||||
try {
|
try {
|
||||||
for (let i = 0; i < hlWorkspaces.length; i++) {
|
for (let i = 0; i < hlWorkspaces.length; i++) {
|
||||||
const ws = hlWorkspaces[i];
|
const ws = hlWorkspaces[i];
|
||||||
workspaces.append({
|
// Only append workspaces with id >= 1
|
||||||
id: i,
|
if (ws.id >= 1) {
|
||||||
idx: ws.id,
|
workspaces.append({
|
||||||
name: ws.name || "",
|
id: i,
|
||||||
output: ws.monitor?.name || "",
|
idx: ws.id,
|
||||||
isActive: ws.active === true,
|
name: ws.name || "",
|
||||||
isFocused: ws.focused === true,
|
output: ws.monitor?.name || "",
|
||||||
isUrgent: ws.urgent === true
|
isActive: ws.active === true,
|
||||||
});
|
isFocused: ws.focused === true,
|
||||||
|
isUrgent: ws.urgent === true
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
workspacesChanged();
|
workspacesChanged();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue