lightswitch: Add setting
Add the option to enable touching the widget only on clock and settings.master
parent
d379a287f4
commit
963697575c
|
|
@ -238,6 +238,7 @@
|
||||||
|
|
||||||
// add touch listener to control the light depending on settings
|
// add touch listener to control the light depending on settings
|
||||||
if (w.touchOn === "always" || !global.__FILE__ ||
|
if (w.touchOn === "always" || !global.__FILE__ ||
|
||||||
|
w.touchOn.includes(__FILE__) ||
|
||||||
w.touchOn.includes(require("Storage").readJSON(__FILE__.replace("app.js", "info")).type))
|
w.touchOn.includes(require("Storage").readJSON(__FILE__.replace("app.js", "info")).type))
|
||||||
Bangle.on("touch", w.touchListener);
|
Bangle.on("touch", w.touchListener);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue