Update settings.js

-Option to unlock the watch, when a message arrives, so the buttons can directly be touched.
master
KungPhoo 2022-03-28 21:57:52 +02:00 committed by GitHub
parent cd1294af40
commit a06c782ede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,7 @@
if (settings.vibrate===undefined) settings.vibrate=".";
if (settings.repeat===undefined) settings.repeat=4;
if (settings.unreadTimeout===undefined) settings.unreadTimeout=60;
if( settings.unlockWatch===undefined) settings.unlockWatch = false;
settings.openMusic=!!settings.openMusic;
settings.maxUnreadTimeout=240;
return settings;
@ -49,6 +50,11 @@
format: v => v?/*LANG*/'Yes':/*LANG*/'No',
onchange: v => updateSetting("openMusic", v)
},
/*LANG*/'Unlock Watch': {
value: !!settings().unlockWatch,
format: v => v?/*LANG*/'Yes':/*LANG*/'No',
onchange: v => updateSetting("unlockWatch", v)
},
};
E.showMenu(mainmenu);
})