diff --git a/apps/hworldclock/ChangeLog b/apps/hworldclock/ChangeLog index a4bd84390..4d8ee5991 100644 --- a/apps/hworldclock/ChangeLog +++ b/apps/hworldclock/ChangeLog @@ -7,3 +7,4 @@ 0.21: Add Settings 0.22: Use default Bangle formatter for booleans 0.23: Added note to configure position in "my location" if not done yet. Small fixes. +0.24: Added fast load diff --git a/apps/hworldclock/app.js b/apps/hworldclock/app.js index a0fb4cd20..74c7067f8 100644 --- a/apps/hworldclock/app.js +++ b/apps/hworldclock/app.js @@ -295,8 +295,18 @@ g.clear(); // Init the settings of the app loadMySettings(); -// Show launcher when button pressed -Bangle.setUI("clock"); +// Show launcher when middle button pressed +Bangle.setUI({ + mode : "clock", + remove : function() { + // Called to unload all of the clock app + if (PosInterval) clearInterval(PosInterval); + PosInterval = undefined; + if (drawTimeoutSeconds) clearTimeout(drawTimeoutSeconds); + drawTimeoutSeconds = undefined; + if (drawTimeout) clearTimeout(drawTimeout); + drawTimeout = undefined; + }}); Bangle.loadWidgets(); Bangle.drawWidgets(); diff --git a/apps/hworldclock/metadata.json b/apps/hworldclock/metadata.json index 653cfc59c..c197d8101 100644 --- a/apps/hworldclock/metadata.json +++ b/apps/hworldclock/metadata.json @@ -2,7 +2,7 @@ "id": "hworldclock", "name": "Hanks World Clock", "shortName": "Hanks World Clock", - "version": "0.23", + "version": "0.24", "description": "Current time zone plus up to three others", "allow_emulator":true, "icon": "app.png",