From 31f050042091c3c6e65cb7d9d1a215b808e9196d Mon Sep 17 00:00:00 2001 From: Christian Bastian <80225746+cdb-boop@users.noreply.github.com> Date: Sat, 20 Apr 2024 20:51:16 -0400 Subject: [PATCH] Added automatic reloading of node models in graph on model update (download, move and delete). --- README.md | 1 - web/model-manager.js | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0e41b19..a31d7ab 100644 --- a/README.md +++ b/README.md @@ -54,4 +54,3 @@ Download, browse and delete models in ComfyUI. ### Known Issues - Pinch to Zoom can cause an invisible scrolling bug. -- After adding/renaming/deleting models, the webpage needs to be reloaded to update the model lists. (Can this be automated?) diff --git a/web/model-manager.js b/web/model-manager.js index ed0df15..5009b0c 100644 --- a/web/model-manager.js +++ b/web/model-manager.js @@ -3503,6 +3503,8 @@ class ModelManager extends ComfyDialog { this.#modelTab.updateModelGrid(); await this.#tryHideModelInfo(false); + + document.getElementById("comfy-refresh-button")?.click(); } /**