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

Test to remove some unnecessary jsons from settings (you will still find them in the Files app) UI to perhaps speed up the UI... There's currently something making the FAX UI lag.

Jon Mårtensson 3 лет назад
Родитель
Сommit
6de30bf58c
1 измененных файлов с 1 добавлено и 17 удалено
  1. 1 17
      FreeAPS/Sources/Modules/Settings/View/SettingsRootView.swift

+ 1 - 17
FreeAPS/Sources/Modules/Settings/View/SettingsRootView.swift

@@ -60,10 +60,6 @@ extension Settings {
                                 .navigationLink(to: .configEditor(file: OpenAPS.Settings.basalProfile), from: self)
                                 .navigationLink(to: .configEditor(file: OpenAPS.Settings.basalProfile), from: self)
                             Text("Targets ranges")
                             Text("Targets ranges")
                                 .navigationLink(to: .configEditor(file: OpenAPS.Settings.bgTargets), from: self)
                                 .navigationLink(to: .configEditor(file: OpenAPS.Settings.bgTargets), from: self)
-                            Text("Carb ratios")
-                                .navigationLink(to: .configEditor(file: OpenAPS.Settings.carbRatios), from: self)
-                            Text("Insulin sensitivities")
-                                .navigationLink(to: .configEditor(file: OpenAPS.Settings.insulinSensitivities), from: self)
                             Text("Temp targets")
                             Text("Temp targets")
                                 .navigationLink(to: .configEditor(file: OpenAPS.Settings.tempTargets), from: self)
                                 .navigationLink(to: .configEditor(file: OpenAPS.Settings.tempTargets), from: self)
                             Text("Meal")
                             Text("Meal")
@@ -71,19 +67,12 @@ extension Settings {
                         }
                         }
 
 
                         Group {
                         Group {
-                            Text("IOB")
-                                .navigationLink(to: .configEditor(file: OpenAPS.Monitor.iob), from: self)
                             Text("Pump profile")
                             Text("Pump profile")
                                 .navigationLink(to: .configEditor(file: OpenAPS.Settings.pumpProfile), from: self)
                                 .navigationLink(to: .configEditor(file: OpenAPS.Settings.pumpProfile), from: self)
                             Text("Profile")
                             Text("Profile")
                                 .navigationLink(to: .configEditor(file: OpenAPS.Settings.profile), from: self)
                                 .navigationLink(to: .configEditor(file: OpenAPS.Settings.profile), from: self)
-                            Text("Glucose")
-                                .navigationLink(to: .configEditor(file: OpenAPS.Monitor.glucose), from: self)
-
                             Text("Carbs")
                             Text("Carbs")
                                 .navigationLink(to: .configEditor(file: OpenAPS.Monitor.carbHistory), from: self)
                                 .navigationLink(to: .configEditor(file: OpenAPS.Monitor.carbHistory), from: self)
-                            Text("Suggested")
-                                .navigationLink(to: .configEditor(file: OpenAPS.Enact.suggested), from: self)
                             Text("Enacted")
                             Text("Enacted")
                                 .navigationLink(to: .configEditor(file: OpenAPS.Enact.enacted), from: self)
                                 .navigationLink(to: .configEditor(file: OpenAPS.Enact.enacted), from: self)
                             Text("Announcements")
                             Text("Announcements")
@@ -93,17 +82,12 @@ extension Settings {
                             Text("Autotune")
                             Text("Autotune")
                                 .navigationLink(to: .configEditor(file: OpenAPS.Settings.autotune), from: self)
                                 .navigationLink(to: .configEditor(file: OpenAPS.Settings.autotune), from: self)
                         }
                         }
-                        Group {
-                            Text("CGM Events")
-                                .navigationLink(to: .configEditor(file: OpenAPS.Monitor.cgmState), from: self)
-                        }
+
                         Group {
                         Group {
                             Text("Target presets")
                             Text("Target presets")
                                 .navigationLink(to: .configEditor(file: OpenAPS.FreeAPS.tempTargetsPresets), from: self)
                                 .navigationLink(to: .configEditor(file: OpenAPS.FreeAPS.tempTargetsPresets), from: self)
                             Text("Calibrations")
                             Text("Calibrations")
                                 .navigationLink(to: .configEditor(file: OpenAPS.FreeAPS.calibrations), from: self)
                                 .navigationLink(to: .configEditor(file: OpenAPS.FreeAPS.calibrations), from: self)
-                            Text("Current Temp")
-                                .navigationLink(to: .configEditor(file: OpenAPS.Monitor.tempBasal), from: self)
                             Text("Middleware")
                             Text("Middleware")
                                 .navigationLink(to: .configEditor(file: OpenAPS.Middleware.determineBasal), from: self)
                                 .navigationLink(to: .configEditor(file: OpenAPS.Middleware.determineBasal), from: self)
                             Text("Statistics")
                             Text("Statistics")