MCPcopy Index your code
hub / github.com/devforth/painterro / redoState

Method redoState

js/worklog.js:119–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 }
118
119 redoState() {
120 if (this.current.next !== null) {
121
122 this.current = this.current.next;
123 this.applyState(this.current);
124 this.changed(false);
125
126 const nextToolName = this.current.activeToolName;
127
128 if (nextToolName) {
129 this.main.closeActiveTool(true);
130 this.main.setActiveTool(this.main.toolByName[nextToolName])
131 } else {
132 this.main.closeActiveTool();
133 }
134
135 if (this.main.params.onRedo) {
136 this.main.params.onRedo(this.current);
137 }
138 }
139 }
140}

Callers 2

constructorMethod · 0.80
initEventHandlersMethod · 0.80

Calls 4

applyStateMethod · 0.95
changedMethod · 0.95
closeActiveToolMethod · 0.80
setActiveToolMethod · 0.80

Tested by

no test coverage detected