mirror of https://github.com/espruino/BangleApps
lightswitch: Add setting
Add the option to enable touching the widget only on clock and settings.pull/1336/head
parent
d379a287f4
commit
963697575c
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue