mirror of https://github.com/espruino/BangleApps
iconlaunch - Remove no longer needed fastload option
parent
779b16b671
commit
de55589e1f
|
@ -7,3 +7,4 @@
|
||||||
0.07: Read app icons on demand
|
0.07: Read app icons on demand
|
||||||
Add swipe-to-exit
|
Add swipe-to-exit
|
||||||
0.08: Only use fast loading for switching to clock to prevent problems in full screen apps
|
0.08: Only use fast loading for switching to clock to prevent problems in full screen apps
|
||||||
|
0.09: Remove fast load option since clocks containing Bangle.loadWidgets are now always normally loaded
|
||||||
|
|
|
@ -10,7 +10,3 @@ This launcher shows 9 apps per screen, making it much faster to navigate versus
|
||||||
## Technical note
|
## Technical note
|
||||||
|
|
||||||
The app uses `E.showScroller`'s code in the app but not the function itself because `E.showScroller` doesn't report the position of a press to the select function.
|
The app uses `E.showScroller`'s code in the app but not the function itself because `E.showScroller` doesn't report the position of a press to the select function.
|
||||||
|
|
||||||
### Fastload option
|
|
||||||
|
|
||||||
Fastload clears up the memory used by the launcher and directly evals the code of the clock to load.
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
const s = require("Storage");
|
const s = require("Storage");
|
||||||
const settings = s.readJSON("launch.json", true) || { showClocks: true, fullscreen: false,direct:false,swipeExit:false,oneClickExit:false,fastload:false };
|
const settings = s.readJSON("launch.json", true) || { showClocks: true, fullscreen: false,direct:false,swipeExit:false,oneClickExit:false};
|
||||||
if (!settings.fullscreen) {
|
if (!settings.fullscreen) {
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
||||||
|
@ -180,24 +180,20 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const returnToClock = function() {
|
const returnToClock = function() {
|
||||||
if (settings.fastload == true){
|
Bangle.setUI();
|
||||||
Bangle.setUI();
|
delete launchCache;
|
||||||
delete launchCache;
|
delete launchHash;
|
||||||
delete launchHash;
|
delete drawItemAuto;
|
||||||
delete drawItemAuto;
|
delete drawText;
|
||||||
delete drawText;
|
delete selectItem;
|
||||||
delete selectItem;
|
delete onDrag;
|
||||||
delete onDrag;
|
delete drawItems;
|
||||||
delete drawItems;
|
delete drawItem;
|
||||||
delete drawItem;
|
delete returnToClock;
|
||||||
delete returnToClock;
|
delete idxToY;
|
||||||
delete idxToY;
|
delete YtoIdx;
|
||||||
delete YtoIdx;
|
delete settings;
|
||||||
delete settings;
|
setTimeout(eval, 0, s.read(".bootcde"));
|
||||||
setTimeout(eval, 0, s.read(".bootcde"));
|
|
||||||
} else {
|
|
||||||
load();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "iconlaunch",
|
"id": "iconlaunch",
|
||||||
"name": "Icon Launcher",
|
"name": "Icon Launcher",
|
||||||
"shortName" : "Icon launcher",
|
"shortName" : "Icon launcher",
|
||||||
"version": "0.08",
|
"version": "0.09",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"description": "A launcher inspired by smartphones, with an icon-only scrollable menu.",
|
"description": "A launcher inspired by smartphones, with an icon-only scrollable menu.",
|
||||||
"tags": "tool,system,launcher",
|
"tags": "tool,system,launcher",
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
fullscreen: false,
|
fullscreen: false,
|
||||||
direct: false,
|
direct: false,
|
||||||
oneClickExit: false,
|
oneClickExit: false,
|
||||||
swipeExit: false,
|
swipeExit: false
|
||||||
fastload: false
|
|
||||||
}, require("Storage").readJSON("launch.json", true) || {});
|
}, require("Storage").readJSON("launch.json", true) || {});
|
||||||
|
|
||||||
let fonts = g.getFonts();
|
let fonts = g.getFonts();
|
||||||
|
@ -36,10 +35,6 @@
|
||||||
/*LANG*/"Swipe exit": {
|
/*LANG*/"Swipe exit": {
|
||||||
value: settings.swipeExit == true,
|
value: settings.swipeExit == true,
|
||||||
onchange: m => { save("swipeExit", m) }
|
onchange: m => { save("swipeExit", m) }
|
||||||
},
|
|
||||||
/*LANG*/"Fastload": {
|
|
||||||
value: settings.fastload == true,
|
|
||||||
onchange: (m) => { save("fastload", m) }
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
E.showMenu(appMenu);
|
E.showMenu(appMenu);
|
||||||
|
|
Loading…
Reference in New Issue