Skip state check hook on first load (#3915)
This commit is contained in:
@@ -173,10 +173,12 @@ 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);
|
||||||
|
if (!app?.configuringGraph) {
|
||||||
const ct = changeTracker();
|
const ct = changeTracker();
|
||||||
if (!ct.isOurLoad) {
|
if (!ct.isOurLoad) {
|
||||||
ct.checkState();
|
ct.checkState();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return v;
|
return v;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user