mirror of https://github.com/espruino/BangleApps
Don't go down extensions paths if nothing waits at the end
parent
641fecf116
commit
197f9bb436
|
@ -14,3 +14,4 @@
|
||||||
settings page to prompt an automatic update of the quicklaunch.json settings file with
|
settings page to prompt an automatic update of the quicklaunch.json settings file with
|
||||||
new key names.
|
new key names.
|
||||||
0.13: Touch and hold to pause the timeout to clock temporarily.
|
0.13: Touch and hold to pause the timeout to clock temporarily.
|
||||||
|
0.14: Extension: Don't go down a path if nothing waits at the end. Revisit the current intersection instead.
|
||||||
|
|
|
@ -9,16 +9,20 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
let leaveTrace = function(trace) {
|
let leaveTrace = function(trace) {
|
||||||
settings.trace = trace;
|
if (settings[trace+"app"].name != "") {
|
||||||
storage.writeJSON("quicklaunch.json", settings);
|
settings.trace = trace;
|
||||||
|
storage.writeJSON("quicklaunch.json", settings);
|
||||||
|
} else { trace = trace.substring(0, trace.length-1); }
|
||||||
return trace;
|
return trace;
|
||||||
};
|
};
|
||||||
|
|
||||||
let launchApp = function(trace) {
|
let launchApp = function(trace) {
|
||||||
if (settings[trace+"app"].src){
|
if (settings[trace+"app"]) {
|
||||||
if (settings[trace+"app"].name == "Show Launcher") Bangle.showLauncher(); else if (!storage.read(settings[trace+"app"].src)) reset(trace+"app"); else load(settings[trace+"app"].src);
|
if (settings[trace+"app"].src){
|
||||||
|
if (settings[trace+"app"].name == "Show Launcher") Bangle.showLauncher(); else if (!storage.read(settings[trace+"app"].src)) reset(trace+"app"); else load(settings[trace+"app"].src);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
let trace = settings.trace;
|
let trace = settings.trace;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "quicklaunch",
|
"id": "quicklaunch",
|
||||||
"name": "Quick Launch",
|
"name": "Quick Launch",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"version": "0.13",
|
"version": "0.14",
|
||||||
"description": "Tap or swipe left/right/up/down on your clock face to launch up to five apps of your choice. Configurations can be accessed through Settings->Apps.",
|
"description": "Tap or swipe left/right/up/down on your clock face to launch up to five apps of your choice. Configurations can be accessed through Settings->Apps.",
|
||||||
"type": "bootloader",
|
"type": "bootloader",
|
||||||
"tags": "tools, system",
|
"tags": "tools, system",
|
||||||
|
|
Loading…
Reference in New Issue