Skip to content

Commit

Permalink
fix multiple lines setting in puzzle local analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Mar 19, 2024
1 parent 41ae777 commit 9a5ec42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/ceval/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ export interface ParentCtrl {
getNode(): Tree.Node;
showComputer(): boolean;
toggleComputer?: () => void;
clearCeval?: () => void;
restartCeval?: () => void;
clearCeval: () => void;
restartCeval: () => void;
redraw?: () => void;
externalEngines?: () => ExternalEngineInfo[] | undefined;
trans: Trans;
Expand Down
4 changes: 4 additions & 0 deletions ui/puzzle/src/ctrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,10 @@ export default class PuzzleCtrl implements ParentCtrl {
this.startCeval();
this.redraw();
};
clearCeval(): void {
this.tree.removeCeval();
this.restartCeval();
}

toggleThreatMode = (): void => {
if (this.node.check) return;
Expand Down

0 comments on commit 9a5ec42

Please sign in to comment.