Skip state check hook on first load

This commit is contained in:
christian-byrne 2024-06-30 18:47:48 -07:00
parent 521421f53e
commit c2e1d8fe63

View File

@ -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;
};