瀏覽代碼

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

polscm32 1 年之前
父節點
當前提交
a0719223ea
共有 1 個文件被更改,包括 3 次插入0 次删除
  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 {