fix: use UnsetWorkspaceName for empty input in workspace rename (#2094)

Previously, empty input would set workspace name to empty string,
causing issues with Niri's unique workspace name requirement.
Now uses UnsetWorkspaceName action when input is empty.
This commit is contained in:
Sheershak sharma authored and GitHub committed 2026-03-29 12:28:21 -04:00
1 parent 62c60900eb
commit 2b9f3a9eef
1 file changed
+9
+9
View File
@@ -1427,6 +1427,15 @@ Singleton {
}
function renameWorkspace(name) {
if (!name || name.trim() === "") {
return send({
"Action": {
"UnsetWorkspaceName": {
"workspace": null
}
}
});
}
return send({
"Action": {
"SetWorkspaceName": {