Skip to content

Commit

Permalink
fixed: close dialogs before restart
Browse files Browse the repository at this point in the history
fixed: visual bug
  • Loading branch information
ltdrdata committed Feb 2, 2025
1 parent 21b6c65 commit ba9c71f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion glob/manager_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
from node_package import InstalledNodePackage


version_code = [3, 17, 1]
version_code = [3, 17, 2]
version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')


Expand Down
19 changes: 7 additions & 12 deletions js/custom-nodes-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -763,10 +763,9 @@ export class CustomNodesManager {

".cn-manager-restart": {
click: () => {
if(rebootAPI()) {
this.close();
this.manager_dialog.close();
}
this.close();
this.manager_dialog.close();
rebootAPI();
}
},

Expand Down Expand Up @@ -1386,19 +1385,14 @@ export class CustomNodesManager {

this.install_context = {btn: btn, targets: target_items};

for(let k in target_items) {
let item = this.install_context.targets[k];
this.grid.updateCell(item, "action");
}

if(errorMsg) {
this.showError(errorMsg);
show_message("Installation Error:\n"+errorMsg);

// reset
for (const hash of list) {
const item = this.grid.getRowItemBy("hash", hash);
self.grid.updateCell(item, "action");
for(let k in target_items) {
let item = this.install_context.targets[k];
this.grid.updateCell(item, "action");
}
}
else {
Expand All @@ -1409,6 +1403,7 @@ export class CustomNodesManager {

async onReconnected(event) {
let self = CustomNodesManager.instance;

if(self.need_restart) {
self.need_restart = false;

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "comfyui-manager"
description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI."
version = "3.17.1"
version = "3.17.2"
license = { file = "LICENSE.txt" }
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]

Expand Down

0 comments on commit ba9c71f

Please sign in to comment.