Explorar el Código

Reset flag to ensure a bolus progress is also shown after canceling bolus from watch

polscm32 hace 1 año
padre
commit
a0719223ea
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      Trio Watch App Extension/WatchState.swift

+ 3 - 0
Trio Watch App Extension/WatchState.swift

@@ -234,6 +234,9 @@ import WatchConnectivity
             DispatchQueue.main.async {
                 self.bolusProgress = 0
                 self.activeBolusAmount = 0
+                self
+                    .isBolusCanceled =
+                    false /// Reset flag to ensure a bolus progress is also shown after canceling bolus from watch
             }
             return
         } else {