Skip to content

Commit ca9e1e9

Browse files
committed
sched 0.34: Ensure ClockInfo updates if it's used to start a timer
1 parent c67025c commit ca9e1e9

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

apps/sched/ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@
3333
0.30: Fix possible bug in toggling an alarm to on, from clkinfo
3434
0.31: Ensure we reschedule alarms after setTimeZone has been called (fix #3791)
3535
0.32: clkinfo ensures an alarm won't trigger immediately (copying `alarm`'s behaviour)
36-
0.33: Ensure default vibration pattern is longer
36+
0.33: Ensure default vibration pattern is longer
37+
0.34: Ensure ClockInfo updates if it's used to start a timer

apps/sched/clkinfo.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,14 @@
126126
},
127127
run: function() {
128128
if (a.date) return; // ignore events
129+
this.hide();
129130
a.on = !a.on;
130131
a.last = 0;
131132
if(a.on && a.timer) require('sched').resetTimer(a);
132133
this.emit("redraw");
133134
require('sched').setAlarms(all);
134135
require('sched').reload(); // schedule/unschedule the alarm
136+
this.show();
135137
}
136138
})),
137139
};

apps/sched/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "sched",
33
"name": "Scheduler",
4-
"version": "0.33",
4+
"version": "0.34",
55
"description": "Scheduling library for alarms and timers",
66
"icon": "app.png",
77
"type": "scheduler",

0 commit comments

Comments
 (0)