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:
@@ -1427,6 +1427,15 @@ Singleton {
|
||||
}
|
||||
|
||||
function renameWorkspace(name) {
|
||||
if (!name || name.trim() === "") {
|
||||
return send({
|
||||
"Action": {
|
||||
"UnsetWorkspaceName": {
|
||||
"workspace": null
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
return send({
|
||||
"Action": {
|
||||
"SetWorkspaceName": {
|
||||
|
||||
Reference in New Issue
Block a user