1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-03 20:32:07 -04:00

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
2026-03-29 21:58:21 +05:30
committed by GitHub
parent 62c60900eb
commit 2b9f3a9eef

View File

@@ -1427,6 +1427,15 @@ Singleton {
}
function renameWorkspace(name) {
if (!name || name.trim() === "") {
return send({
"Action": {
"UnsetWorkspaceName": {
"workspace": null
}
}
});
}
return send({
"Action": {
"SetWorkspaceName": {