fix: don't erase previous alarm if none loaded
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
This commit is contained in:
parent
040edba1f7
commit
20027dc16a
1 changed files with 2 additions and 0 deletions
|
@ -140,6 +140,8 @@ class AlarmApp:
|
|||
|
||||
self._set_pending_alarms()
|
||||
try:
|
||||
if self.num_alarms == 0:
|
||||
return
|
||||
with open("alarms", "w") as f:
|
||||
for n in range(self.num_alarms):
|
||||
al = self.alarms[n]
|
||||
|
|
Loading…
Reference in a new issue