Browse Source

bugfix: refresh of missing nodes installation

pull/14/head
Dr.Lt.Data 2 years ago
parent
commit
9d31687d2c
  1. 2
      __init__.py
  2. 7
      js/comfyui-manager.js

2
__init__.py

@ -16,7 +16,7 @@ sys.path.append('../..')
from torchvision.datasets.utils import download_url from torchvision.datasets.utils import download_url
# ensure .js # ensure .js
print("### Loading: ComfyUI-Manager (V0.6.1)") print("### Loading: ComfyUI-Manager (V0.6.2)")
comfy_path = os.path.dirname(folder_paths.__file__) comfy_path = os.path.dirname(folder_paths.__file__)
custom_nodes_path = os.path.join(comfy_path, 'custom_nodes') custom_nodes_path = os.path.join(comfy_path, 'custom_nodes')

7
js/comfyui-manager.js vendored

@ -206,7 +206,7 @@ class CustomNodesInstaller extends ComfyDialog {
return data.filter(node => node.files.some(file => missing_nodes.has(file))); return data.filter(node => node.files.some(file => missing_nodes.has(file)));
} }
async invalidateControl(is_missing_node_mode) { async invalidateControl() {
this.clear(); this.clear();
// splash // splash
@ -225,7 +225,7 @@ class CustomNodesInstaller extends ComfyDialog {
// invalidate // invalidate
this.data = (await getCustomNodes()).custom_nodes; this.data = (await getCustomNodes()).custom_nodes;
if(is_missing_node_mode) if(this.is_missing_node_mode)
this.data = await this.filter_missing_node(this.data); this.data = await this.filter_missing_node(this.data);
this.element.removeChild(msg); this.element.removeChild(msg);
@ -411,8 +411,9 @@ class CustomNodesInstaller extends ComfyDialog {
} }
async show(is_missing_node_mode) { async show(is_missing_node_mode) {
this.is_missing_node_mode = is_missing_node_mode;
try { try {
this.invalidateControl(is_missing_node_mode); this.invalidateControl();
this.element.style.display = "block"; this.element.style.display = "block";
} }

Loading…
Cancel
Save