Now re-adds widgets if they were hidden when fast-loading

master
Gordon Williams 2022-12-09 14:59:18 +00:00
parent 25c50d2d97
commit 31dadf83a0
2 changed files with 5 additions and 3 deletions

View File

@ -37,3 +37,4 @@
0.20: Add much faster circle rendering (250ms -> 40ms)
Add fast load capability
0.21: Remade all icons without a palette for dark theme
Now re-adds widgets if they were hidden when fast-loading

View File

@ -33,9 +33,9 @@ if (settings.stepGoal == undefined) {
}
let drawTimeout;
let showWidgets = settings.showWidgets || false;
let circleCount = settings.circleCount || 3;
let showBigWeather = settings.showBigWeather || false;
const showWidgets = settings.showWidgets || false;
const circleCount = settings.circleCount || 3;
const showBigWeather = settings.showBigWeather || false;
let hrtValue; //TODO deprecate this
let now = Math.round(new Date().getTime() / 1000);
@ -329,6 +329,7 @@ Bangle.setUI({
clockInfoMenu.forEach(c => c.remove());
delete Graphics.prototype.setFontRobotoRegular50NumericOnly;
delete Graphics.prototype.setFontRobotoRegular21;
if (!showWidgets) require("widget_utils").show();
}
});