Moving loadWidgets call

pull/3030/head
Ryan Taylor 2023-09-25 09:00:35 -07:00 committed by GitHub
parent 1f9d61d254
commit ec97b439ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -198,7 +198,6 @@ g.clear();
g.setFont("Vector", py(10)).drawString(require('locale').dow(new Date(), 1)+" "+new Date().getDate()+" "+require('locale').month(new Date(), 1)+((data.temp == undefined) ? "" : " | "+require('locale').temp(Math.round(data.temp-273.15)).replace(".0", "")), px(2), py(87)); g.setFont("Vector", py(10)).drawString(require('locale').dow(new Date(), 1)+" "+new Date().getDate()+" "+require('locale').month(new Date(), 1)+((data.temp == undefined) ? "" : " | "+require('locale').temp(Math.round(data.temp-273.15)).replace(".0", "")), px(2), py(87));
if (data.showWidgets) { if (data.showWidgets) {
Bangle.loadWidgets();
Bangle.drawWidgets(); Bangle.drawWidgets();
} }
} }
@ -372,3 +371,8 @@ queueDraw();
readWeather(); readWeather();
setWeather(); setWeather();
Bangle.setUI("clock"); Bangle.setUI("clock");
if (data.showWidgets) {
Bangle.loadWidgets();
Bangle.drawWidgets();
}