@@ -32,7 +32,7 @@ export class ChangeTracker {
3232 /**
3333 * Whether the redo/undo restoring is in progress.
3434 */
35- private restoringState : boolean = false
35+ _restoringState : boolean = false
3636
3737 ds ?: { scale : number ; offset : [ number , number ] }
3838 nodeOutputs ?: Record < string , any >
@@ -55,7 +55,7 @@ export class ChangeTracker {
5555 */
5656 reset ( state ?: ComfyWorkflowJSON ) {
5757 // Do not reset the state if we are restoring.
58- if ( this . restoringState ) return
58+ if ( this . _restoringState ) return
5959
6060 logger . debug ( 'Reset State' )
6161 if ( state ) this . activeState = clone ( state )
@@ -124,7 +124,7 @@ export class ChangeTracker {
124124 const prevState = source . pop ( )
125125 if ( prevState ) {
126126 target . push ( this . activeState )
127- this . restoringState = true
127+ this . _restoringState = true
128128 try {
129129 await app . loadGraphData ( prevState , false , false , this . workflow , {
130130 showMissingModelsDialog : false ,
@@ -134,7 +134,7 @@ export class ChangeTracker {
134134 this . activeState = prevState
135135 this . updateModified ( )
136136 } finally {
137- this . restoringState = false
137+ this . _restoringState = false
138138 }
139139 }
140140 }
0 commit comments