Skip to content

Commit

Permalink
Skip state check hook on first load (#3915)
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-byrne committed Jul 4, 2024
1 parent 086ac75 commit 24b969d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions web/scripts/changeTracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 24b969d

Please sign in to comment.