mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-09 06:04:31 +08:00
fix: direct reflect to 'Add Node' context menu after component saving
This commit is contained in:
parent
7f10374a9f
commit
9eef99b868
@ -28,7 +28,7 @@ except:
|
||||
print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.")
|
||||
|
||||
|
||||
version = [2, 0]
|
||||
version = [2, 0, 1]
|
||||
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
|
||||
print(f"### Loading: ComfyUI-Manager ({version_str})")
|
||||
|
||||
|
||||
@ -140,8 +140,8 @@ export async function save_as_component(node, app) {
|
||||
});
|
||||
|
||||
if(res.status == 200) {
|
||||
storeGroupNode(name, subgraph);
|
||||
const config = new GroupNodeConfig(name, subgraph);
|
||||
storeGroupNode(component_name, subgraph);
|
||||
const config = new GroupNodeConfig(component_name, subgraph);
|
||||
await config.registerType();
|
||||
|
||||
let path = await res.text();
|
||||
@ -183,6 +183,10 @@ export async function save_as_component(node, app) {
|
||||
});
|
||||
|
||||
if(res.status == 200) {
|
||||
storeGroupNode(component_name, subgraph);
|
||||
const config = new GroupNodeConfig(component_name, subgraph);
|
||||
await config.registerType();
|
||||
|
||||
let path = await res.text();
|
||||
app.ui.dialog.show(`Component '${component_name}' is saved into:\n${path}`);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user