From 963697575ce8d5a3e2bb721ab50ed57aba146c6c Mon Sep 17 00:00:00 2001 From: storm64 Date: Fri, 21 Jan 2022 20:09:25 +0100 Subject: [PATCH] lightswitch: Add setting Add the option to enable touching the widget only on clock and settings. --- apps/lightswitch/widget.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/lightswitch/widget.js b/apps/lightswitch/widget.js index fcf412325..119a114fe 100644 --- a/apps/lightswitch/widget.js +++ b/apps/lightswitch/widget.js @@ -238,6 +238,7 @@ // add touch listener to control the light depending on settings if (w.touchOn === "always" || !global.__FILE__ || + w.touchOn.includes(__FILE__) || w.touchOn.includes(require("Storage").readJSON(__FILE__.replace("app.js", "info")).type)) Bangle.on("touch", w.touchListener);