mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-22 00:37:01 +08:00
Skip state check hook on first load
This commit is contained in:
parent
521421f53e
commit
c2e1d8fe63
@ -173,9 +173,11 @@ export class ChangeTracker {
|
|||||||
const onNodeAdded = LiteGraph.LGraph.prototype.onNodeAdded;
|
const onNodeAdded = LiteGraph.LGraph.prototype.onNodeAdded;
|
||||||
LiteGraph.LGraph.prototype.onNodeAdded = function () {
|
LiteGraph.LGraph.prototype.onNodeAdded = function () {
|
||||||
const v = onNodeAdded?.apply(this, arguments);
|
const v = onNodeAdded?.apply(this, arguments);
|
||||||
const ct = changeTracker();
|
if (!app?.configuringGraph) {
|
||||||
if (!ct.isOurLoad) {
|
const ct = changeTracker();
|
||||||
ct.checkState();
|
if (!ct.isOurLoad) {
|
||||||
|
ct.checkState();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return v;
|
return v;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user