Explorar el Código

Merge pull request #24 from MikePlante1/treatment_button

don't allow treatment button to be pressed twice
Deniz Cengiz hace 1 año
padre
commit
14e0622af9
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift

+ 2 - 1
FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift

@@ -574,7 +574,8 @@ extension Bolus {
         }
 
         private var disableTaskButton: Bool {
-            state.amount > 0 ? (state.externalInsulin ? externalBolusLimit : pumpBolusLimit) : false
+            state.addButtonPressed ||
+                (state.amount > 0 ? (state.externalInsulin ? externalBolusLimit : pumpBolusLimit) : false)
         }
     }