ptlaunch: Turn on lcd when launching an app if the lock screen was disabled in the settings

pull/1043/head
crazysaem 2021-12-09 12:02:16 +00:00
parent bbef0ded3f
commit b98a0d262c
3 changed files with 9 additions and 2 deletions

View File

@ -4805,7 +4805,7 @@
"id": "ptlaunch",
"name": "Pattern Launcher",
"shortName": "Pattern Launcher",
"version": "0.01",
"version": "0.02",
"description": "Directly launch apps from the clock screen with custom patterns.",
"icon": "app.png",
"tags": "tools",

View File

@ -1 +1,2 @@
0.01: Initial creation of the pattern launch app
0.02: Turn on lcd when launching an app if the lock screen was disabled in the settings

View File

@ -135,6 +135,12 @@ var dragHandler = (position) => {
if (storedPatterns[pattern]) {
var app = storedPatterns[pattern].app;
if (!!app && !!app.src) {
if (storedPatterns.settings) {
if (storedPatterns.settings.lockDisabled) {
Bangle.setLCDPower(true);
}
}
Bangle.removeListener("drag", dragHandler);
load(app.src);
}