fix: do nothing if moving to existing workspace
This commit is contained in:
parent
589af00394
commit
dad57da905
1 changed files with 2 additions and 0 deletions
|
|
@ -58,6 +58,7 @@ Scope {
|
|||
} else {
|
||||
id = uiState.workspaces.get(index).workspace.id;
|
||||
}
|
||||
if (id === Hypr.focusedWorkspace.id) return;
|
||||
Hypr.dispatch(`workspace ${id}`);
|
||||
}
|
||||
|
||||
|
|
@ -80,6 +81,7 @@ Scope {
|
|||
} else {
|
||||
id = uiState.workspaces.get(index).workspace.id;
|
||||
}
|
||||
if (id === Hypr.focusedWorkspace.id) return;
|
||||
Hypr.dispatch(`hy3:movetoworkspace ${id}`);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue