Skip to content

Commit

Permalink
More consistently set the checkmark
Browse files Browse the repository at this point in the history
  • Loading branch information
rooklift committed Apr 2, 2022
1 parent 554f3b4 commit 4127650
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/modules/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,12 @@ let engine_prototype = {
// Otherwise, sends the desired query to the engine, and sets this.running.

if (!this.exe) {
ipcRenderer.send("set_check_false", ["Analysis", "Go / halt toggle"]);
return;
}

ipcRenderer.send("set_check_true", ["Analysis", "Go / halt toggle"]);

let query = base_query(node, this);

if (this.desired) {
Expand All @@ -83,7 +86,6 @@ let engine_prototype = {

finalise_query(query, node);
this.desired = query;
ipcRenderer.send("set_check_true", ["Analysis", "Go / halt toggle"]);

if (this.running) {
this.__send({
Expand All @@ -101,6 +103,8 @@ let engine_prototype = {

// Clears this.desired, and sends a stop message if required.

ipcRenderer.send("set_check_false", ["Analysis", "Go / halt toggle"]);

if (!this.exe) {
return;
}
Expand All @@ -114,7 +118,6 @@ let engine_prototype = {
}

this.desired = null;
ipcRenderer.send("set_check_false", ["Analysis", "Go / halt toggle"]);
},

setup: function(filepath, engineconfig, weights) {
Expand Down

0 comments on commit 4127650

Please sign in to comment.