Просмотр исходного кода

fix for bolus progress overlay

polscm32 aka Marvout 1 год назад
Родитель
Сommit
e7efa9c98f
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      Trio Watch App Extension/WatchState.swift

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

@@ -56,6 +56,7 @@ import WatchConnectivity
     /// - Parameters:
     ///   - amount: The insulin amount to be delivered
     func sendBolusRequest(_ amount: Decimal) {
+        isBolusCanceled = false // Reset canceled state when starting new bolus
         guard let session = session, session.isReachable else { return }
 
         let message: [String: Any] = [