Skip to content

Commit

Permalink
final (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
rooklift committed Mar 22, 2021
1 parent 228a99f commit 9d1ca6d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/95_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ function NewRenderer() {

if (this.tree.node === this.leela_lock_node) {
if (!this.engine.search_desired.node) {
config.behaviour = "halt"; // This direct adjustment with
this.leela_lock_node = null; // these things is sketchy.
this.set_behaviour_direct("halt");
}
}

Expand Down Expand Up @@ -197,9 +196,13 @@ function NewRenderer() {
}
}

this.set_behaviour_direct(s);
this.behave("behaviour");
};

renderer.set_behaviour_direct = function(s) {
this.leela_lock_node = (s === "analysis_locked") ? this.tree.node : null;
config.behaviour = s;
this.behave("behaviour");
};

renderer.handle_search_params_change = function() {
Expand Down

0 comments on commit 9d1ca6d

Please sign in to comment.