only call loadWidgets if Fastload Utils is installed

pull/2645/head
thyttan 2023-03-12 13:41:23 +01:00
parent 1bfb1ae7e4
commit b1e57cc00d
2 changed files with 5 additions and 1 deletions

View File

@ -42,7 +42,7 @@
});
g.clearRect(Bangle.appRect);
Bangle.loadWidgets(); // Compatibility with Fastload Utils.
if (settings.fuInstalled) Bangle.loadWidgets(); // Compatibility with Fastload Utils.
// taken from Icon Launcher with some alterations
let timeoutToClock;

View File

@ -7,6 +7,10 @@ for (let c of ["lapp","rapp","uapp","dapp","tapp"]){ // l=left, r=right, u=up, d
if (!settings[c]) settings[c] = {"name":""};
}
// Always check it Fastload Utils is installed.
if (!settings.fuInstalled) settings.fuInstalled = false;
if (storage.read("fastload.utils",0,1)) settings.fuInstalled = true;
// Convert settings object from before v0.12 to v0.12.
for (let c of ["leftapp","rightapp","upapp","downapp","tapapp"]){
if (settings[c]) {