mirror of https://github.com/espruino/BangleApps
Fix loadWidgets location
parent
072db5c9b9
commit
0219eeb0ef
|
@ -2,4 +2,5 @@
|
||||||
0.13: Fix widgets reappearing
|
0.13: Fix widgets reappearing
|
||||||
0.14: Fix midnight
|
0.14: Fix midnight
|
||||||
0.15: Fix midnight better
|
0.15: Fix midnight better
|
||||||
0.16: Fix midnight decisively
|
0.16: Fix midnight decisively
|
||||||
|
0.17: Get loadWidgets back in the right place
|
|
@ -48,9 +48,6 @@ const Y = SCREEN_HEIGHT / 2
|
||||||
let date, mins;
|
let date, mins;
|
||||||
|
|
||||||
function initialize() {
|
function initialize() {
|
||||||
// Load widgets
|
|
||||||
Bangle.loadWidgets();
|
|
||||||
|
|
||||||
// draw immediately at first
|
// draw immediately at first
|
||||||
tick();
|
tick();
|
||||||
|
|
||||||
|
@ -108,6 +105,8 @@ function draw() {
|
||||||
This should be done *before* Bangle.loadWidgets so that
|
This should be done *before* Bangle.loadWidgets so that
|
||||||
widgets know if they're being loaded into a clock app or not */
|
widgets know if they're being loaded into a clock app or not */
|
||||||
Bangle.setUI("clock");
|
Bangle.setUI("clock");
|
||||||
|
// Load widgets
|
||||||
|
Bangle.loadWidgets();
|
||||||
|
|
||||||
if (settings.showWidgets) {
|
if (settings.showWidgets) {
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"name": "Dutch Clock",
|
"name": "Dutch Clock",
|
||||||
"shortName":"Dutch Clock",
|
"shortName":"Dutch Clock",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"version":"0.16",
|
"version":"0.17",
|
||||||
"description": "A clock that displays the time the way a Dutch person would respond when asked what time it is.",
|
"description": "A clock that displays the time the way a Dutch person would respond when asked what time it is.",
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
"tags": "clock,dutch,text",
|
"tags": "clock,dutch,text",
|
||||||
|
|
Loading…
Reference in New Issue