diff --git a/apps/bwclk/ChangeLog b/apps/bwclk/ChangeLog index 4bd8664c1..daebecf8f 100644 --- a/apps/bwclk/ChangeLog +++ b/apps/bwclk/ChangeLog @@ -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. diff --git a/apps/bwclk/app.js b/apps/bwclk/app.js index 05db62779..3f142a066 100644 --- a/apps/bwclk/app.js +++ b/apps/bwclk/app.js @@ -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); } }); diff --git a/apps/bwclk/metadata.json b/apps/bwclk/metadata.json index e26307410..2f628a6b9 100644 --- a/apps/bwclk/metadata.json +++ b/apps/bwclk/metadata.json @@ -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",