fix widclk regression

pull/843/head
Gordon Williams 2021-10-06 20:14:33 +01:00
parent 05145da819
commit b5337717e7
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ if (!Bangle.CLOCK) WIDGETS["wdclk"]={area:"tl",width:52/* g.stringWidth("00:00")
var time = require("locale").time(new Date(),1); var time = require("locale").time(new Date(),1);
g.drawString(time, this.x, this.y+3, true); // 5 * 6*2 = 60 g.drawString(time, this.x, this.y+3, true); // 5 * 6*2 = 60
// queue draw in one minute // queue draw in one minute
if (drawTimeout) clearTimeout(drawTimeout); if (this.drawTimeout) clearTimeout(this.drawTimeout);
this.drawTimeout = setTimeout(()=>{ this.drawTimeout = setTimeout(()=>{
this.drawTimeout = undefined; this.drawTimeout = undefined;
this.draw(); this.draw();