forked from FOSS/BangleApps
astral: setUI before loading widgets
This fixes the sanity check warning: ``` Clock astral file calls loadWidgets before setUI (clock widget/etc won't be aware a clock app is running) ```master
parent
8d0859f24e
commit
4c2170f9c5
|
@ -5,3 +5,4 @@
|
|||
0.05: Added adjustment for Bangle.js magnetometer heading fix
|
||||
0.06: optimized to update much faster
|
||||
0.07: added support for bangle.js 2
|
||||
0.08: call setUI before loading widgets to indicate we're a clock
|
||||
|
|
|
@ -850,6 +850,8 @@ g.setBgColor(0, 0, 0);
|
|||
g.fillRect(0, 0, 175, 175);
|
||||
current_moonphase = getMoonPhase();
|
||||
|
||||
Bangle.setUI("clock");
|
||||
|
||||
// Load widgets
|
||||
Bangle.loadWidgets();
|
||||
Bangle.drawWidgets();
|
||||
|
@ -865,8 +867,6 @@ Bangle.setGPSPower(1);
|
|||
|
||||
var secondInterval;
|
||||
|
||||
Bangle.setUI("clock");
|
||||
|
||||
autoUpdate();
|
||||
|
||||
setWatch(SwitchSensorState, BTN1, { repeat: true });
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "astral",
|
||||
"name": "Astral Clock",
|
||||
"version": "0.07",
|
||||
"version": "0.08",
|
||||
"description": "Clock that calculates and displays Alt Az positions of all planets, Sun as well as several other astronomy targets (customizable) and current Moon phase. Coordinates are calculated by GPS & time and onscreen compass assists orienting. See Readme before using.",
|
||||
"icon": "app-icon.png",
|
||||
"type": "clock",
|
||||
|
|
Loading…
Reference in New Issue