Fix widgets drawing w/out timeout

master
RKBoss6 2025-06-27 09:42:59 -04:00 committed by GitHub
parent 7d56b7d8ab
commit af2f861ba7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -173,7 +173,7 @@ let draw = function() {
var dateStr = require("locale").dow(new Date(), 1)+", "+ require("locale").month(new Date(), true)+" "+new Date().getDate();
g.drawString(" "+dateStr+" ", g.getWidth()/2, Y+9, true /*clear background*/);
Bangle.drawWidgets();
// queue next draw
if (drawTimeout) clearTimeout(drawTimeout);
@ -203,5 +203,4 @@ g.clear();
// Load widgets
Bangle.loadWidgets();
draw();
setTimeout(Bangle.drawWidgets,0);
}