mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-22 21:00:49 +08:00
bugfix: refresh of missing nodes installation
This commit is contained in:
parent
b7b8545632
commit
9d31687d2c
@ -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')
|
||||||
|
|||||||
@ -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…
Reference in New Issue
Block a user