mirror of https://github.com/espruino/BangleApps
Correctly handle hiding/showing widgets
parent
2b6839bedb
commit
ec9bc29295
|
@ -125,12 +125,15 @@
|
|||
// Remove handler to allow fast loading
|
||||
Bangle.setUI({mode:"clock", remove:function() {
|
||||
if (drawTimeout) clearTimeout(drawTimeout);
|
||||
require("widget_utils").show();
|
||||
}});
|
||||
|
||||
// Load and display widgets
|
||||
if (settings.showWidgets) {
|
||||
Bangle.loadWidgets();
|
||||
Bangle.drawWidgets();
|
||||
if (settings.showWidgets) {
|
||||
require("widget_utils").show();
|
||||
} else {
|
||||
require("widget_utils").hide();
|
||||
}
|
||||
|
||||
// draw initial boxes and queue subsequent redraws
|
||||
|
|
Loading…
Reference in New Issue