mirror of https://github.com/espruino/BangleApps
beebclock 0.05: Avoid 'loadWidgets' at LCD on, which will cause memory leak
parent
9f524462bf
commit
11b7000259
|
@ -2039,7 +2039,7 @@
|
|||
"id": "beebclock",
|
||||
"name": "Beeb Clock",
|
||||
"icon": "beebclock.png",
|
||||
"version":"0.04",
|
||||
"version":"0.05",
|
||||
"description": "Clock face that may be coincidentally familiar to BBC viewers",
|
||||
"tags": "clock",
|
||||
"type": "clock",
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
0.02: Fixes; widget support
|
||||
0.03: Remove hardcoded hour buzz (you can install widchime if you miss it)
|
||||
0.04: Update to use Bangle.setUI instead of setWatch
|
||||
0.05: Avoid 'loadWidgets' at LCD on, which will cause memory leak
|
||||
|
|
|
@ -356,6 +356,7 @@ const changeSeconds = () => {
|
|||
};
|
||||
|
||||
Bangle.loadWidgets();
|
||||
// widgets are drawn in drawAll()
|
||||
|
||||
// Restore mode
|
||||
try {
|
||||
|
@ -373,8 +374,6 @@ drawAll();
|
|||
|
||||
Bangle.on('lcdPower', (on) => {
|
||||
if (on) {
|
||||
Bangle.loadWidgets();
|
||||
Bangle.drawWidgets();
|
||||
drawAll();
|
||||
} else {
|
||||
clearTimeout();
|
||||
|
|
Loading…
Reference in New Issue