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/config_loader.py b/config_loader.py index 1e10ff5..2f9e895 100644 --- a/config_loader.py +++ b/config_loader.py @@ -6,10 +6,17 @@ class Rule: key: any value_default: any value_type: type - value_min: int | float | None - value_max: int | float | None + value_min: any # int | float | None + value_max: any # int | float | None - def __init__(self, key, value_default, value_type: type, value_min: int | float | None = None, value_max: int | float | None = None): + def __init__( + self, + key, + value_default, + value_type: type, + value_min: any = None, # int | float | None + value_max: any = None, # int | float | None + ): self.key = key self.value_default = value_default self.value_type = value_type 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(); } /**