tweak conversion quicklaunch.json again...

pull/2645/head
thyttan 2023-03-12 02:36:53 +01:00
parent 203d3b075f
commit 6bc0604c60
1 changed files with 3 additions and 0 deletions

View File

@ -23,12 +23,15 @@ for (let c of ["leftapp","rightapp","upapp","downapp","tapapp"]){
}
}
}
storage.writeJSON("quicklaunch.json",settings);
}
}
for (let d of ["extleftapp","extrightapp","extupapp","extdownapp","exttapapp"]){
if (settings[d]) delete settings[d];
}
var apps = storage.list(/\.info$/).map(app=>{var a=storage.readJSON(app,1);return a&&{name:a.name,type:a.type,sortorder:a.sortorder,src:a.src};}).filter(app=>app && (app.type=="app" || app.type=="launch" || app.type=="clock" || !app.type));
// Add psuedo app to trigger Bangle.showLauncher later