diff --git a/js/comfyui-manager.js b/js/comfyui-manager.js index 36845167..f93f3c90 100644 --- a/js/comfyui-manager.js +++ b/js/comfyui-manager.js @@ -811,11 +811,15 @@ const isOutputNode = (node) => { class ManagerMenuDialog extends ComfyDialog { createControlsMid() { let self = this; + const isElectron = 'electronAPI' in window; update_comfyui_button = $el("button.cm-button", { type: "button", textContent: "Update ComfyUI", + style: { + display: isElectron ? 'none' : 'block' + }, onclick: () => updateComfyUI() }); @@ -824,6 +828,9 @@ class ManagerMenuDialog extends ComfyDialog { $el("button.cm-button", { type: "button", textContent: "Switch ComfyUI", + style: { + display: !isElectron ? 'none' : 'block' + }, onclick: () => switchComfyUI() }); @@ -1606,4 +1613,4 @@ async function set_default_ui() } } -set_default_ui(); \ No newline at end of file +set_default_ui();