Skip state check hook on first load (#3915)

main
bymyself 8 months ago committed by GitHub
parent 086ac75228
commit 24b969d3da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -173,9 +173,11 @@ export class ChangeTracker {
const onNodeAdded = LiteGraph.LGraph.prototype.onNodeAdded;
LiteGraph.LGraph.prototype.onNodeAdded = function () {
const v = onNodeAdded?.apply(this, arguments);
const ct = changeTracker();
if (!ct.isOurLoad) {
ct.checkState();
if (!app?.configuringGraph) {
const ct = changeTracker();
if (!ct.isOurLoad) {
ct.checkState();
}
}
return v;
};

Loading…
Cancel
Save