- apps/widminbat: updated ChangeLog and bumped version

- apps/widminbat: changed to react to charging event
master
notEvil 2023-01-06 14:41:27 +01:00
parent 40ec2f7f08
commit fedd2326be
3 changed files with 3 additions and 1 deletions

View File

@ -1 +1,2 @@
0.02: Display while charging
0.01: Initial Version: Display at under 30% battery

View File

@ -1,7 +1,7 @@
{ "id": "widminbat",
"name": "Minimal Battery",
"shortName":"MinBat",
"version":"0.01",
"version":"0.02",
"description": "A minimal version of the battery widget that only appears if the battery is running low (below 30%)",
"icon": "widget.png",
"type": "widget",

View File

@ -26,4 +26,5 @@
var widget = WIDGETS.minbat;
if(widget) {widget.update();}
}, 10*60*1000);
Bangle.on('charging', () => WIDGETS.minbat.update());
})();