mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-23 11:44:00 -04:00
fix(workspace): ignore duplicate submit in rename modal (#3549)
Pressing Enter in the name field fires both the text field's accepted signal and the dialog's own Return handler, so submitAndClose() runs twice. The first call renames and hides the window, which clears the field; the second call then renames to an empty string and unsets the workspace name. The OK button only fires once, so it was unaffected. Ignore submits once the window is hidden. Claude-Session: https://claude.ai/code/session_01791wgvD8EqJaAeURYXYbT5 Signed-off-by: Thomas Kroll <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
7e8c556ab6
commit
eb0cb80884
@@ -44,6 +44,8 @@ DankFloatingWindow {
|
||||
}
|
||||
|
||||
function submitAndClose() {
|
||||
if (!root.visible)
|
||||
return;
|
||||
if (aqueousWorkspace || CompositorService.isAqueous) {
|
||||
if (!aqueousWorkspace || renaming)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user