Bläddra i källkod

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

polscm32 1 år sedan
förälder
incheckning
a0719223ea
1 ändrade filer med 3 tillägg och 0 borttagningar
  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 {
             DispatchQueue.main.async {
                 self.bolusProgress = 0
                 self.bolusProgress = 0
                 self.activeBolusAmount = 0
                 self.activeBolusAmount = 0
+                self
+                    .isBolusCanceled =
+                    false /// Reset flag to ensure a bolus progress is also shown after canceling bolus from watch
             }
             }
             return
             return
         } else {
         } else {