Show charging clkinfo in case the charger is connected

master
David Peer 2023-01-08 16:59:36 +01:00
parent 2165941e1b
commit e9eec03915
1 changed files with 7 additions and 0 deletions

View File

@ -326,6 +326,13 @@ let lockListenerBw = function(isLocked) {
};
Bangle.on('lock', lockListenerBw);
let charging = function(charging){
// Jump to battery
clockInfoMenu.menuA = 0;
clockInfoMenu.menuB = 2;
clockInfoMenu.redraw();
}
Bangle.on('charging', charging);
let kill = function(){
clockInfoMenu.remove();