1
0
Fork 0

Merge pull request #2656 from thyttan/quicklaunch

[quicklaunch] Don't go down extensions path if nothing waits at the end, ...
master
Gordon Williams 2023-03-20 09:23:48 +00:00 committed by GitHub
commit 140a00f093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 6 deletions

View File

@ -14,3 +14,4 @@
settings page to prompt an automatic update of the quicklaunch.json settings file with
new key names.
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.

View File

@ -9,16 +9,20 @@
};
let leaveTrace = function(trace) {
settings.trace = trace;
storage.writeJSON("quicklaunch.json", settings);
if (settings[trace+"app"].name != "") {
settings.trace = trace;
storage.writeJSON("quicklaunch.json", settings);
} else { trace = trace.substring(0, trace.length-1); }
return trace;
};
let launchApp = function(trace) {
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);
if (settings[trace+"app"]) {
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;

View File

@ -2,7 +2,7 @@
"id": "quicklaunch",
"name": "Quick Launch",
"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.",
"type": "bootloader",
"tags": "tools, system",