mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-17 02:12:58 +08:00
Hide update comfyui buttons in electron.
This commit is contained in:
parent
f8ebf7c6ad
commit
3c45f8dc91
@ -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();
|
||||
set_default_ui();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user