improved: Display the terminal when starting the installation of a model or node packs

This commit is contained in:
Dr.Lt.Data committed 2025-02-10 02:56:55 +09:00
1 parent 22266484bd
commit e113e011cb
5 files changed
+19 -4

No files matched your search

+1 -1
View File
@@ -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 '')
+12
View File
@@ -420,3 +420,15 @@ export function sanitizeHTML(str) {
.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
}
}
+3 -1
View File
@@ -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();
}
}
+2 -1
View File
@@ -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();
}
}
+1 -1
View File
@@ -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"]
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.