widadjust: reverse hide check

pull/3196/head
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,15 +85,16 @@
} }
function draw() { function draw() {
if (settings.hide !== true) { if (settings.hide === true) {
g.reset().setFont('6x8').setFontAlign(0, 0); return;
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.reset().setFont('6x8').setFontAlign(0, 0);
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);
if (lastPpm !== null) { if (lastPpm !== null) {
g.setFont('4x6').setFontAlign(0, 1); g.setFont('4x6').setFontAlign(0, 1);
g.drawString(lastPpm.toFixed(1), this.x + WIDTH/2, this.y + 23); g.drawString(lastPpm.toFixed(1), this.x + WIDTH/2, this.y + 23);
}
} }
} }