()
| 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 | } |
no test coverage detected