From ad3b181f0cd7e2ce4bfa94e545d47da749dcf3e9 Mon Sep 17 00:00:00 2001 From: Bryan Date: Sun, 31 Dec 2023 17:52:57 -0600 Subject: [PATCH] Fix widclkmod --- apps/widclkmod/widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/widclkmod/widget.js b/apps/widclkmod/widget.js index cbafcdeb7..0935fca6c 100644 --- a/apps/widclkmod/widget.js +++ b/apps/widclkmod/widget.js @@ -1,13 +1,13 @@ /* Simple clock that appears in the widget bar if no other clock is running. We update once per minute, but don't bother stopping if the */ -WIDGETS["wdclk"]={area:"tl",width:Bangle.CLOCK?0:52/* g.stringWidth("00:00") */,draw:function() { +WIDGETS["wdclkmod"]={area:"tl",width:Bangle.CLOCK?0:52/* g.stringWidth("00:00") */,draw:function() { if (!Bangle.CLOCK == !this.width) { // if we're the wrong size for if we have a clock or not... this.width = Bangle.CLOCK?0:52; return setTimeout(Bangle.drawWidgets,1); // widget changed size - redraw } if (!this.width) return; // if not visible, return -g.reset().g.setFont("6x8").setFontAlign(0,0); +g.reset().setFont("6x8").setFontAlign(0,0); var time = require("locale").time(new Date(),1); g.clearRect(this.x, this.y, this.x+this.width-1, this.y+23).drawString(time, this.x+this.width/2, this.y+12); // 5 * 6*2 = 60 // queue draw in one minute