diff --git a/pyproject.toml b/pyproject.toml index 25a15f7..d069692 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "ComfyUI-PromptForge" description = "ComfyUI prompt enhancement suite: model/config node with GPU-aware auto settings, prompt enhancer with a preset catalog, and a standalone config finder." -version = "1.28.25" +version = "1.28.26" license = { file = "LICENSE" } dependencies = [ "transformers", diff --git a/web/promptforge_h3.js b/web/promptforge_h3.js index f891df6..d68a425 100644 --- a/web/promptforge_h3.js +++ b/web/promptforge_h3.js @@ -412,11 +412,12 @@ app.registerExtension({ const result = onConfigure?.apply(this, arguments); const category = this.widgets.find((widget) => widget.name === "category"); const action = this.widgets.find((widget) => widget.name === "action"); - if (category && action) api.fetchApi("/promptforge/actions").then((response) => response.json()).then((known) => { + if (category && action) setTimeout(() => api.fetchApi("/promptforge/actions").then((response) => response.json()).then((known) => { const found = known[String(action.value)]?.category; if (found) category.value = found; this.promptforgeRefreshAction?.(); - }); + this.setDirtyCanvas(true, true); + }), 60); this.promptforgeRefreshAction?.(); setTimeout(() => this.promptforgeRestoreActionSize?.(), 0); return result;