widadjust: reverse hide check

master
Erik Andresen 2024-02-13 07:56:51 +01:00
parent 5e223c24a1
commit b21f495cbf
1 changed files with 9 additions and 8 deletions

View File

@ -85,7 +85,9 @@
} }
function draw() { function draw() {
if (settings.hide !== true) { if (settings.hide === true) {
return;
}
g.reset().setFont('6x8').setFontAlign(0, 0); g.reset().setFont('6x8').setFontAlign(0, 0);
g.clearRect(this.x, this.y, this.x + WIDTH - 1, this.y + 23); g.clearRect(this.x, this.y, this.x + WIDTH - 1, this.y + 23);
g.drawString(Math.round(clockError), this.x + WIDTH/2, this.y + 9); g.drawString(Math.round(clockError), this.x + WIDTH/2, this.y + 9);
@ -95,7 +97,6 @@
g.drawString(lastPpm.toFixed(1), this.x + WIDTH/2, this.y + 23); g.drawString(lastPpm.toFixed(1), this.x + WIDTH/2, this.y + 23);
} }
} }
}
function loadSettings() { function loadSettings() {
settings = Object.assign({ settings = Object.assign({