Skip to content

Commit

Permalink
config.mouseover_pv
Browse files Browse the repository at this point in the history
  • Loading branch information
rooklift committed May 15, 2021
1 parent 194040b commit b99f018
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,17 @@ function menu_build() {
win.webContents.send("toggle", "candidate_moves");
}
},
{
label: "...with PV mouseover",
type: "checkbox",
checked: config.mouseover_pv,
click: () => {
win.webContents.send("toggle", "mouseover_pv");
}
},
{
type: "separator",
},
{
label: "Next move markers",
type: "checkbox",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/board_drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ let board_drawer_prototype = {

draw_pv: function(node, point) { // Return true / false whether this happened.

if (!config.candidate_moves) {
if (!config.candidate_moves || !config.mouseover_pv) {
return false;
}

Expand Down
1 change: 1 addition & 0 deletions src/modules/config_io.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ exports.defaults_classified = {
"candidate_moves": true,
"numbers": "lcb",
"visits_threshold": 0.02,
"mouseover_pv": true,
"next_move_markers": true,
"circle_best": true,
},
Expand Down

0 comments on commit b99f018

Please sign in to comment.