forked from FOSS/BangleApps
[ fixup ] Restore recently removed redrawing on charger event
parent
dabb6dc72c
commit
8b9bccdd10
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue