Explorar o código

Temporary alert

Jonas Björkert hai 1 ano
pai
achega
ced56729bb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      LoopFollow/Alarm/AlarmManager.swift

+ 1 - 0
LoopFollow/Alarm/AlarmManager.swift

@@ -144,6 +144,7 @@ class AlarmManager {
                 var list = Storage.shared.alarms.value
                 if let idx = list.firstIndex(where: { $0.id == alarm.id }) {
                     list[idx].isEnabled = false
+                    list[idx].snoozedUntil = nil
                     Storage.shared.alarms.value = list
                 }
             }