mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-08-04 07:52:46 +08:00
Ask for confirmation before clearing nodes
This commit is contained in:
@@ -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();
|
||||
}}),
|
||||
|
Reference in New Issue
Block a user