1
0
Fork 0

Call setUI before loadWidgets

master
pancake 2023-06-09 16:58:51 +02:00
parent c62ccf27e1
commit 84bde38d89
1 changed files with 2 additions and 2 deletions

View File

@ -13,6 +13,8 @@ function loadLocation () {
}
}
Bangle.setUI("clock");
Bangle.loadWidgets();
const latlon = loadLocation();
const lat = latlon.lat || 41.38;
const lon = latlon.lon || 2.168;
@ -294,7 +296,6 @@ function renderScreen () {
g.setBgColor(0, 0, 0);
g.clear();
if (realTime) {
Bangle.loadWidgets();
Bangle.drawWidgets();
}
drawGlow();
@ -319,5 +320,4 @@ Bangle.on('tap', () => {
});
renderScreen();
Bangle.setUI("clock");
setInterval(renderScreen, 60 * 1000);