From 323b2dc3b41cf8b2ea52f936bf9971a74667fcba Mon Sep 17 00:00:00 2001 From: Dimitri Gigot Date: Fri, 3 Apr 2020 21:37:00 +0000 Subject: [PATCH] Improvement: Close launcher when lcd turn off --- apps.json | 2 +- apps/toucher/ChangeLog | 3 ++- apps/toucher/app.js | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apps.json b/apps.json index f0bc4874a..d3ff86ab0 100644 --- a/apps.json +++ b/apps.json @@ -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", diff --git a/apps/toucher/ChangeLog b/apps/toucher/ChangeLog index bd3d5d225..f21553c54 100644 --- a/apps/toucher/ChangeLog +++ b/apps/toucher/ChangeLog @@ -1,2 +1,3 @@ 0.01: New App! -0.02: Add swipe support and doucle tap to run application \ No newline at end of file +0.02: Add swipe support and doucle tap to run application +0.03: Close launcher when lcd turn off \ No newline at end of file diff --git a/apps/toucher/app.js b/apps/toucher/app.js index 2b80198c9..7a3f6ff97 100644 --- a/apps/toucher/app.js +++ b/apps/toucher/app.js @@ -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(); }); \ No newline at end of file