Merge pull request #2458 from thyttan/bwclock

[BW Clock] remove some leftovers that caused ReferenceError on fast loading
master
Gordon Williams 2023-01-06 11:04:19 +00:00 committed by GitHub
commit 9c783a1f91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -25,3 +25,5 @@
0.25: Use Bangle.setUI({remove:...}) to allow loading the launcher without a full reset on fw2v16. 0.25: Use Bangle.setUI({remove:...}) to allow loading the launcher without a full reset on fw2v16.
ClockInfo Fix: Use .get instead of .show as .show is not implemented for weather etc. ClockInfo Fix: Use .get instead of .show as .show is not implemented for weather etc.
0.26: Use clkinfo.addInteractive instead of a custom implementation 0.26: Use clkinfo.addInteractive instead of a custom implementation
0.27: Clean out some leftovers in the remove function after switching to
clkinfo.addInteractive that would cause ReferenceError.

View File

@ -294,13 +294,11 @@ Bangle.setUI({
// Called to unload all of the clock app // Called to unload all of the clock app
Bangle.removeListener('lcdPower', lcdListenerBw); Bangle.removeListener('lcdPower', lcdListenerBw);
Bangle.removeListener('lock', lockListenerBw); Bangle.removeListener('lock', lockListenerBw);
Bangle.removeListener('charging', chargingListenerBw);
Bangle.removeListener('touch', touchListenerBw);
if (drawTimeout) clearTimeout(drawTimeout); if (drawTimeout) clearTimeout(drawTimeout);
drawTimeout = undefined; drawTimeout = undefined;
// save settings // save settings
save(); kill();
E.removeListener("kill", save); E.removeListener("kill", kill);
g.setTheme(themeBackup); g.setTheme(themeBackup);
} }
}); });

View File

@ -1,7 +1,7 @@
{ {
"id": "bwclk", "id": "bwclk",
"name": "BW Clock", "name": "BW Clock",
"version": "0.26", "version": "0.27",
"description": "A very minimalistic clock.", "description": "A very minimalistic clock.",
"readme": "README.md", "readme": "README.md",
"icon": "app.png", "icon": "app.png",