Skip to content

Commit

Permalink
Merge pull request #3620 from bobrippling/fix/alarm-clkinfo-enable
Browse files Browse the repository at this point in the history
sched/clkinfo: reset `last` when activating an alarm
  • Loading branch information
bobrippling authored Nov 11, 2024
2 parents d3dc3b4 + 43dcbd3 commit b6da987
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/sched/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@
0.26: Fix hitting snooze on an alarm after when the snooze would've fired
0.27: Tapping clkinfo enables/disables the selected alarm
0.28: Added an icon for disabled events
0.29: Improve clkinfo startup time by 10ms
0.29: Improve clkinfo startup time by 10ms
0.30: Fix possible bug in toggling an alarm to on, from clkinfo
1 change: 1 addition & 0 deletions apps/sched/clkinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
run: function() {
if (a.date) return; // ignore events
a.on = !a.on;
a.last = 0;
if(a.on && a.timer) require('sched').resetTimer(a);
this.emit("redraw");
require('sched').setAlarms(all);
Expand Down
2 changes: 1 addition & 1 deletion apps/sched/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "sched",
"name": "Scheduler",
"version": "0.29",
"version": "0.30",
"description": "Scheduling library for alarms and timers",
"icon": "app.png",
"type": "scheduler",
Expand Down

0 comments on commit b6da987

Please sign in to comment.