sched clkinfo: revert to toggling `alarm.on`

pull/3579/head
Rob Pilling 2024-10-03 21:07:08 +01:00
parent acc940d99f
commit 5fc1f5cd13
1 changed files with 1 additions and 5 deletions

View File

@ -127,12 +127,8 @@
run: function() {
if (a.date) return; // ignore events
a.on = !a.on;
if (a.on) {
// use sched to start the alarm,
// so it takes care of timers etc
alarm.setAlarm(a.id, a);
}
this.emit("redraw");
alarm.setAlarms(all);
alarm.reload(); // schedule/unschedule the alarm
}
})),