Parcourir la source

chore: bump calendar update ignore time to 1 minute

Andreas Stokholm il y a 1 an
Parent
commit
eb3a7bf376
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      FreeAPS/Sources/Services/Calendar/CalendarManager.swift

+ 2 - 2
FreeAPS/Sources/Services/Calendar/CalendarManager.swift

@@ -212,8 +212,8 @@ final class BaseCalendarManager: CalendarManager, Injectable {
         guard settingsManager.settings.useCalendar, let calendar = currentCalendar,
               let determinationId = await getLastDetermination() else { return }
 
-        // Ignore the update if the last one was less than 10 seconds ago
-        if lastCalendarUpdate.timeIntervalSinceNow > -10 {
+        // Ignore the update if the last one was less than 1 minute ago
+        if lastCalendarUpdate.timeIntervalSinceNow > -60 {
             return
         }