lightswitch: Add setting

Add the option to enable touching the widget only on clock and settings.
pull/1336/head
storm64 2022-01-21 20:09:25 +01:00 committed by GitHub
parent d379a287f4
commit 963697575c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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);