Commit 080c758c authored by City's avatar City
Browse files

Ask for confirmation before clearing nodes

parent 1718730e
......@@ -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();
}}),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment