From 60a99aae53cc28436d6eac7bd086138eb3e5dfb0 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Sat, 2 Sep 2023 23:25:54 +0200 Subject: [PATCH] Widget size no longer changes, so remove associated code. --- apps/widbat/widget.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/apps/widbat/widget.js b/apps/widbat/widget.js index f874528936..8262537e8a 100644 --- a/apps/widbat/widget.js +++ b/apps/widbat/widget.js @@ -1,10 +1,6 @@ (function(){ - function setWidth() { - WIDGETS["bat"].width = 40 + (Bangle.isCharging()?16:0); - } Bangle.on('charging',function(charging) { if(charging) Bangle.buzz(); - setWidth(); Bangle.drawWidgets(); // re-layout widgets g.flip(); }); @@ -40,5 +36,4 @@ g.setColor(g.theme.fg).fillPoly(flash); } }}; - setWidth(); })()