Explorar el Código

adjust order of tasks

polscm32 hace 2 años
padre
commit
79def8ce4a

+ 2 - 2
FreeAPS/Sources/Modules/Bolus/View/AlternativeBolusCalcRootView.swift

@@ -437,10 +437,10 @@ extension Bolus {
                         Section {
                             Button {
                                 Task {
-                                    state.waitForSuggestion = true
-                                    state.addButtonPressed = true
                                     await state.add()
+                                    state.waitForSuggestion = true
                                     state.addCarbs()
+                                    state.addButtonPressed = true
                                 }
                             }