Merge pull request #2276 from pebl-hank/master

Added fast load
pull/2277/head
Gordon Williams 2022-11-15 13:24:17 +00:00 committed by GitHub
commit 5f2c649987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 3 deletions

View File

@ -7,3 +7,4 @@
0.21: Add Settings 0.21: Add Settings
0.22: Use default Bangle formatter for booleans 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.23: Added note to configure position in "my location" if not done yet. Small fixes.
0.24: Added fast load

View File

@ -295,8 +295,18 @@ g.clear();
// Init the settings of the app // Init the settings of the app
loadMySettings(); loadMySettings();
// Show launcher when button pressed // Show launcher when middle button pressed
Bangle.setUI("clock"); 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.loadWidgets();
Bangle.drawWidgets(); Bangle.drawWidgets();

View File

@ -2,7 +2,7 @@
"id": "hworldclock", "id": "hworldclock",
"name": "Hanks World Clock", "name": "Hanks World Clock",
"shortName": "Hanks World Clock", "shortName": "Hanks World Clock",
"version": "0.23", "version": "0.24",
"description": "Current time zone plus up to three others", "description": "Current time zone plus up to three others",
"allow_emulator":true, "allow_emulator":true,
"icon": "app.png", "icon": "app.png",