Merge pull request #2032 from LeonMatthes/hide-alarms

[Alarms & Timers] Allow hiding timers/alarms
pull/2038/head
Gordon Williams 2022-07-11 12:06:49 +01:00 committed by GitHub
commit d0ad75b5fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View File

@ -33,4 +33,5 @@
0.31: Add seconds to timers
0.32: Fix wrong hidden filter
Add option for auto-delete a timer after it expires
0.33: Allow hiding timers&alarms

View File

@ -124,6 +124,10 @@ function showEditAlarmMenu(selectedAlarm, alarmIndex) {
value: alarm.as,
onchange: v => alarm.as = v
},
/*LANG*/"Hidden": {
value: alarm.hidden || false,
onchange: v => alarm.hidden = v
},
/*LANG*/"Cancel": () => showMainMenu()
};
@ -284,6 +288,10 @@ function showEditTimerMenu(selectedTimer, timerIndex) {
value: timer.del,
onchange: v => timer.del = v
},
/*LANG*/"Hidden": {
value: timer.hidden || false,
onchange: v => timer.hidden = v
},
/*LANG*/"Vibrate": require("buzz_menu").pattern(timer.vibrate, v => timer.vibrate = v),
/*LANG*/"Cancel": () => showMainMenu()
};

View File

@ -2,7 +2,7 @@
"id": "alarm",
"name": "Alarms & Timers",
"shortName": "Alarms",
"version": "0.32",
"version": "0.33",
"description": "Set alarms and timers on your Bangle",
"icon": "app.png",
"tags": "tool,alarm,widget",