From caa1abbe7b6a5d7b2ad778fbbbcdddca58ad06c8 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Thu, 4 Jul 2024 00:20:23 +0900 Subject: [PATCH] support wildcard refresh in refresh button in new style menu --- js/impact-wildcard.js | 5 +++++ modules/impact/config.py | 2 +- pyproject.toml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/js/impact-wildcard.js b/js/impact-wildcard.js index 2cb635a..18157e9 100644 --- a/js/impact-wildcard.js +++ b/js/impact-wildcard.js @@ -2,6 +2,7 @@ import { ComfyApp, app } from "../../scripts/app.js"; import { api } from "../../scripts/api.js"; let refresh_btn = document.getElementById('comfy-refresh-button'); +let refresh_btn2 = document.querySelector('button[title="Refresh widgets in nodes to find new models or files"]'); let orig = refresh_btn.onclick; @@ -9,3 +10,7 @@ refresh_btn.onclick = function() { orig(); api.fetchApi('/impact/wildcards/refresh'); }; + +refresh_btn2.addEventListener('click', function() { + api.fetchApi('/impact/wildcards/refresh'); +}); \ No newline at end of file diff --git a/modules/impact/config.py b/modules/impact/config.py index 32824d4..edc9de3 100644 --- a/modules/impact/config.py +++ b/modules/impact/config.py @@ -1,7 +1,7 @@ import configparser import os -version_code = [5, 18, 11] +version_code = [5, 18, 12] version = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') dependency_version = 22 diff --git a/pyproject.toml b/pyproject.toml index 8c03bfe..937a793 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-impact-pack" description = "This extension offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler." -version = "5.18.11" +version = "5.18.12" license = "LICENSE" dependencies = ["segment-anything", "scikit-image", "piexif", "transformers", "opencv-python-headless", "GitPython", "scipy>=1.11.4"]