mirror of https://github.com/espruino/BangleApps
alarm: respect Quiet Mode
parent
7a4f69526d
commit
f459839c12
|
@ -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": [
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue