mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-02-14 15:12:32 +08:00
use more consistent isVisible condition check
This commit is contained in:
parent
69087150ac
commit
5110a5695b
@ -1269,7 +1269,7 @@ class ManagerMenuDialog extends ComfyDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get isVisible() {
|
get isVisible() {
|
||||||
return this.element?.style?.display === "block";
|
return this.element?.style?.display !== "none";
|
||||||
}
|
}
|
||||||
|
|
||||||
show() {
|
show() {
|
||||||
|
|||||||
@ -1918,6 +1918,6 @@ export class CustomNodesManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get isVisible() {
|
get isVisible() {
|
||||||
return this.element?.style?.display === "flex";
|
return this.element?.style?.display !== "none";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user