Edit group name on group creation (With Ctrl + g) (#715)

* Editor store

* Merge editors

* nit

* Edit on group creation

* nit
This commit is contained in:
Chenlei Hu
2024-09-02 20:20:40 -04:00
committed by GitHub
parent 4ad1e67ebf
commit 4a230f720e
7 changed files with 184 additions and 209 deletions

View File

@@ -8,6 +8,7 @@ import { showSettingsDialog } from '@/services/dialogService'
import { useToastStore } from '@/stores/toastStore'
import { LGraphGroup } from '@comfyorg/litegraph'
import { useSettingStore } from '@/stores/settingStore'
import { useTitleEditorStore } from '@/stores/graphStore'
export const ComfyDialog = _ComfyDialog
@@ -783,6 +784,7 @@ export class ComfyUI {
)
group.addNodes(Object.values(app.canvas.selected_nodes), padding)
app.canvas.graph.add(group)
useTitleEditorStore().titleEditorTarget = group
}
})
]) as HTMLDivElement