From 819f8eb158143a3aa3147ba35aadbf72747eab00 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sat, 27 Apr 2024 09:35:41 +0900 Subject: [PATCH] fix: copy & paste issues https://github.com/ltdrdata/ComfyUI-Manager/issues/615 https://github.com/ltdrdata/ComfyUI-Manager/issues/616 --- glob/manager_core.py | 2 +- js/comfyui-manager.js | 2 +- js/comfyui-share-openart.js | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/glob/manager_core.py b/glob/manager_core.py index 5c5cc4b4..6207cbcd 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -21,7 +21,7 @@ sys.path.append(glob_path) import cm_global from manager_util import * -version = [2, 23] +version = [2, 23, 1] version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '') comfyui_manager_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) diff --git a/js/comfyui-manager.js b/js/comfyui-manager.js index 6b4c1ce6..125955ae 100644 --- a/js/comfyui-manager.js +++ b/js/comfyui-manager.js @@ -925,7 +925,7 @@ class ManagerMenuDialog extends ComfyDialog { }); let dbl_click_policy_combo = document.createElement("select"); - dbl_click_policy_combo.setAttribute("title", "When loading the workflow, configure which version of the component to use."); + dbl_click_policy_combo.setAttribute("title", "Sets the behavior when you double-click the title area of a node."); dbl_click_policy_combo.className = "cm-menu-combo"; dbl_click_policy_combo.appendChild($el('option', { value: 'none', text: 'Double-Click: None' }, [])); dbl_click_policy_combo.appendChild($el('option', { value: 'copy-all', text: 'Double-Click: Copy All Connections' }, [])); diff --git a/js/comfyui-share-openart.js b/js/comfyui-share-openart.js index 15770907..96460fe7 100644 --- a/js/comfyui-share-openart.js +++ b/js/comfyui-share-openart.js @@ -481,10 +481,6 @@ export class OpenArtShareDialog extends ComfyDialog { if (this.uploadImagesInput.files.length === 0) { throw new Error("No thumbnail uploaded"); } - - if (this.uploadImagesInput.files.length === 0) { - throw new Error("No thumbnail uploaded"); - } } }