fix: do nothing if moving to existing workspace

This commit is contained in:
Kiana Sheibani 2025-10-08 00:04:14 -04:00
parent 589af00394
commit dad57da905
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -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}`);
}