mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 23:00:51 +08:00
Ask for confirmation before clearing nodes
This commit is contained in:
parent
76a6b372da
commit
850028f65c
@ -510,6 +510,7 @@ export class ComfyUI {
|
||||
$el("button", { textContent: "Load", onclick: () => fileInput.click() }),
|
||||
$el("button", { textContent: "Refresh", onclick: () => app.refreshComboInNodes() }),
|
||||
$el("button", { textContent: "Clear", onclick: () => {
|
||||
if (!confirm("Are you sure you want to remove all nodes?")) return;
|
||||
app.clean();
|
||||
app.graph.clear();
|
||||
}}),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user