mirror of https://github.com/espruino/BangleApps
fix widclk regression
parent
05145da819
commit
b5337717e7
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue