diff --git a/glob/manager_core.py b/glob/manager_core.py index c8ce863f..0cf61535 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -42,7 +42,7 @@ import manager_downloader from node_package import InstalledNodePackage -version_code = [3, 18] +version_code = [3, 18, 1] version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') diff --git a/js/common.js b/js/common.js index f2e09a92..e9c02ace 100644 --- a/js/common.js +++ b/js/common.js @@ -413,10 +413,22 @@ export const icons = { } export function sanitizeHTML(str) { - return str - .replace(/&/g, "&") - .replace(//g, ">") - .replace(/"/g, """) - .replace(/'/g, "'"); + return str + .replace(/&/g, "&") + .replace(//g, ">") + .replace(/"/g, """) + .replace(/'/g, "'"); +} + +export function showTerminal() { + try { + const panel = app.extensionManager.bottomPanel; + const isTerminalVisible = panel.bottomPanelVisible && panel.activeBottomPanelTab.id === 'logs-terminal'; + if (!isTerminalVisible) + panel.toggleBottomPanelTab('logs-terminal'); + } + catch(exception) { + // do nothing + } } \ No newline at end of file diff --git a/js/custom-nodes-manager.js b/js/custom-nodes-manager.js index 6ad026d4..a3437779 100644 --- a/js/custom-nodes-manager.js +++ b/js/custom-nodes-manager.js @@ -4,7 +4,8 @@ import { api } from "../../scripts/api.js"; import { manager_instance, rebootAPI, install_via_git_url, - fetchData, md5, icons, show_message, customConfirm, customAlert, customPrompt, sanitizeHTML, infoToast + fetchData, md5, icons, show_message, customConfirm, customAlert, customPrompt, + sanitizeHTML, infoToast, showTerminal } from "./common.js"; // https://cenfun.github.io/turbogrid/api.html @@ -1398,6 +1399,7 @@ export class CustomNodesManager { else { await api.fetchApi('/manager/queue/start'); this.showStop(); + showTerminal(); } } diff --git a/js/model-manager.js b/js/model-manager.js index c46d71c4..430d2e24 100644 --- a/js/model-manager.js +++ b/js/model-manager.js @@ -2,7 +2,7 @@ import { app } from "../../scripts/app.js"; import { $el } from "../../scripts/ui.js"; import { manager_instance, rebootAPI, - fetchData, md5, icons, show_message, customAlert, infoToast + fetchData, md5, icons, show_message, customAlert, infoToast, showTerminal } from "./common.js"; import { api } from "../../scripts/api.js"; @@ -697,6 +697,7 @@ export class ModelManager { else { await api.fetchApi('/manager/queue/start'); this.showStop(); + showTerminal(); } } diff --git a/pyproject.toml b/pyproject.toml index 00d7d6a8..4bd2b1bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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.18" +version = "3.18.1" license = { file = "LICENSE.txt" } dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]