Skip to content

Commit be6750a

Browse files
authored
Update battery warning condition to include showPercent
1 parent f6c609e commit be6750a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/widsmartbatt/widget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
: (days >= 1
3030
? Math.round(Math.min(days, 99)) + "d"
3131
: Math.round(hrsLeft) + "h");
32-
if(batt<=5) txt="!";
32+
if(batt<=5&&!showPercent) txt="!";
3333
if(Bangle.isCharging()) txt=E.getBattery();
3434
let s = 29;
3535
let x = this.x, y = this.y;

0 commit comments

Comments
 (0)