remove some leftovers that caused ReferenceError on fast loading

pull/2458/head
thyttan 2023-01-06 11:46:19 +01:00
parent ef8dd30f25
commit a681d5415a
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.
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.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
Bangle.removeListener('lcdPower', lcdListenerBw);
Bangle.removeListener('lock', lockListenerBw);
Bangle.removeListener('charging', chargingListenerBw);
Bangle.removeListener('touch', touchListenerBw);
if (drawTimeout) clearTimeout(drawTimeout);
drawTimeout = undefined;
// save settings
save();
E.removeListener("kill", save);
kill();
E.removeListener("kill", kill);
g.setTheme(themeBackup);
}
});

View File

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