alarm: respect Quiet Mode

pull/697/head
Richard de Boer 2021-03-20 19:12:40 +01:00
parent 7a4f69526d
commit f459839c12
3 changed files with 3 additions and 1 deletions

View File

@ -186,7 +186,7 @@
"name": "Default Alarm", "name": "Default Alarm",
"shortName":"Alarms", "shortName":"Alarms",
"icon": "app.png", "icon": "app.png",
"version":"0.10", "version":"0.11",
"description": "Set and respond to alarms", "description": "Set and respond to alarms",
"tags": "tool,alarm,widget", "tags": "tool,alarm,widget",
"storage": [ "storage": [

View File

@ -8,3 +8,4 @@
0.08: Make alarm scheduling more reliable 0.08: Make alarm scheduling more reliable
0.09: Add per alarm auto-snooze option 0.09: Add per alarm auto-snooze option
0.10: Fix auto-snooze option (this stopped new alarms being added) (fix #506) 0.10: Fix auto-snooze option (this stopped new alarms being added) (fix #506)
0.11: Respect Quiet Mode

View File

@ -38,6 +38,7 @@ function showAlarm(alarm) {
load(); load();
}); });
function buzz() { function buzz() {
if ((require('Storage').readJSON('setting.json',1)||{}).quiet>1) return; // total silence
Bangle.buzz(100).then(()=>{ Bangle.buzz(100).then(()=>{
setTimeout(()=>{ setTimeout(()=>{
Bangle.buzz(100).then(function() { Bangle.buzz(100).then(function() {