Improvement: Close launcher when lcd turn off

pull/213/head
Dimitri Gigot 2020-04-03 21:37:00 +00:00
parent 28c8437cce
commit 323b2dc3b4
3 changed files with 7 additions and 2 deletions

View File

@ -1013,7 +1013,7 @@
"name": "Touch Launcher",
"shortName":"Menu",
"icon": "app.png",
"version":"0.02",
"version":"0.03",
"description": "Touch enable left to right launcher.",
"tags": "tool,system,launcher",
"type":"launch",

View File

@ -1,2 +1,3 @@
0.01: New App!
0.02: Add swipe support and doucle tap to run application
0.02: Add swipe support and doucle tap to run application
0.03: Close launcher when lcd turn off

View File

@ -127,4 +127,8 @@ Bangle.on('touch', function(button){
Bangle.on('swipe', dir => {
if(dir == 1) prev();
else next();
});
Bangle.on('lcdPower', function(on) {
if(!on) return load();
});