WIDGET widbatpc:

0.15: Added option to always display the icon when charging (useful if 'hide if charge greater than' is enabled)
master
Jeroen Peters 2022-01-03 20:28:10 +01:00
parent e33b817acf
commit 61797894af
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@
var w = 40; var w = 40;
if (Bangle.isCharging() && setting('charger')) if (Bangle.isCharging() && setting('charger'))
w += 16; w += 16;
if (setting('alwaysoncharge') == false && E.getBattery() > setting('hideifmorethan')) if ((setting('alwaysoncharge') == false && Bangle.isCharging()) && E.getBattery() > setting('hideifmorethan'))
w = 0; w = 0;
var changed = WIDGETS["batpc"].width != w; var changed = WIDGETS["batpc"].width != w;
WIDGETS["batpc"].width = w; WIDGETS["batpc"].width = w;