Bläddra i källkod

fix missing chart elements when changing tab bar item....WiP

polscm32 2 år sedan
förälder
incheckning
7e3cce3aa9
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6 0
      FreeAPS/Sources/Modules/Home/View/Chart/MainChartView.swift

+ 6 - 0
FreeAPS/Sources/Modules/Home/View/Chart/MainChartView.swift

@@ -158,6 +158,12 @@ struct MainChartView: View {
                         scroller.scrollTo("MainChart", anchor: .trailing)
                     }
                     .onAppear {
+                        calculateBoluses()
+                        calculateBasals()
+                        calculateTempBasals()
+                        calculateFpus()
+                        calculateCarbs()
+                        calculatePredictions()
                         updateStartEndMarkers()
                         scroller.scrollTo("MainChart", anchor: .trailing)
                     }