1
0
Fork 0

[ fixup ] Restore recently removed redrawing on charger event

master
Denis Buzdalov 2024-12-11 13:24:28 +03:00
parent dabb6dc72c
commit 8b9bccdd10
3 changed files with 4 additions and 1 deletions

View File

@ -6,3 +6,4 @@
add settings for widgets, order of drawing and hour hand length
0.06: Fix issue showing widgets when app is fast-loaded into from launcher with widgets disabled
0.07: Enable fast loading and queue updates to the second
0.08: Restore redraw on charging event

View File

@ -139,6 +139,7 @@ Bangle.setUI({
drawTimeout = undefined;
Bangle.removeListener('lcdPower', updateState);
Bangle.removeListener('lock', updateState);
Bangle.removeListener('charging', draw);
require("widget_utils").show();
}
});
@ -167,6 +168,7 @@ let updateState = function() {
// Stop updates when LCD is off, restart when on
Bangle.on('lcdPower', updateState);
Bangle.on('lock', updateState);
Bangle.on('charging', draw); // Immediately redraw when charger (dis)connected
let unlock = true;
updateState();

View File

@ -1,7 +1,7 @@
{ "id": "andark",
"name": "Analog Dark",
"shortName":"AnDark",
"version":"0.07",
"version":"0.08",
"description": "analog clock face without disturbing widgets",
"icon": "andark_icon.png",
"type": "clock",