Skip to content

Commit

Permalink
Fix #1731 Allow Multiple lines = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Feb 6, 2025
1 parent 122d1a5 commit 27fefb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/analysisCtrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ export class AnalysisController extends GameController {
drawEval = (ceval: Ceval | undefined, scoreStr: string | undefined, turnColor: cg.Color) => {
const pvlineIdx = (ceval && ceval.multipv) ? ceval.multipv - 1 : 0;
// Render PV line
if (ceval?.p !== undefined) {
if (ceval?.p !== undefined && this.multipv > 0) {
let pvSan: string | VNode = ceval.p;
if (this.fsfEngineBoard) {
try {
Expand Down
2 changes: 1 addition & 1 deletion client/analysisSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class MultiPVSettings extends NumberSettings {
}

view(): VNode {
const els = slider(this, 'multipv', 1, 5, 1, _('Multiple lines'));
const els = slider(this, 'multipv', 0, 5, 1, _('Multiple lines'));
els.push(h('div.multipv_range_value', `${this.value} / 5`));
return h('div.labelled', els);
}
Expand Down

0 comments on commit 27fefb1

Please sign in to comment.