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

Display when Max IOB setting = 0 and closed loop Loop

(cherry picked from commit 907fcf7258947b4c2566d7bd0ec0fade74f4e1c1)
Jon Mårtensson 2 лет назад
Родитель
Сommit
caee82bd7f
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

+ 4 - 0
FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

@@ -308,6 +308,10 @@ extension Home {
                         .padding(.trailing, 8)
                 }
 
+                if state.closedLoop, state.settingsManager.preferences.maxIOB == 0 {
+                    Text("Max IOB: 0").font(.callout).foregroundColor(.orange).padding(.trailing, 20)
+                }
+
                 if let progress = state.bolusProgress {
                     Text("Bolusing")
                         .font(.system(size: 12, weight: .bold)).foregroundColor(.insulin)