Pārlūkot izejas kodu

Remove searchContents additions to keep PR scope to scroll target mappings only

Gordon Child 1 mēnesi atpakaļ
vecāks
revīzija
b6bc8c067f
1 mainītis faili ar 12 papildinājumiem un 6 dzēšanām
  1. 12 6
      Trio/Sources/Modules/Settings/SettingItems.swift

+ 12 - 6
Trio/Sources/Modules/Settings/SettingItems.swift

@@ -211,21 +211,15 @@ enum SettingItems {
             searchContents: [
                 "Display Meal Presets",
                 "Recommended Bolus Percentage",
-                "Enable Reduced Bolus Option",
-                "Reduced Bolus Percentage",
                 "Enable Reduced Bolus Factor",
                 "Reduced Bolus Factor",
-                "Enable Super Bolus Option",
-                "Super Bolus Percentage",
                 "Enable Super Bolus",
                 "Super Bolus Factor",
                 "Very Low Glucose Warning"
             ],
             scrollTargetLabels: [
-                "Reduced Bolus Percentage": "Enable Reduced Bolus Option",
                 "Enable Reduced Bolus Factor": "Enable Reduced Bolus Option",
                 "Reduced Bolus Factor": "Enable Reduced Bolus Option",
-                "Super Bolus Percentage": "Enable Super Bolus Option",
                 "Enable Super Bolus": "Enable Super Bolus Option",
                 "Super Bolus Factor": "Enable Super Bolus Option"
             ],
@@ -245,6 +239,14 @@ enum SettingItems {
                 "Fat and Protein Percentage",
                 "FPU"
             ],
+            scrollTargetLabels: [
+                "Max Fat": "Enable Fat and Protein Entries",
+                "Max Protein": "Enable Fat and Protein Entries",
+                "Fat and Protein Delay": "Enable Fat and Protein Entries",
+                "Spread Interval": "Enable Fat and Protein Entries",
+                "Fat and Protein Percentage": "Enable Fat and Protein Entries",
+                "FPU": "Enable Fat and Protein Entries"
+            ],
             path: ["Features", "Meal Settings"]
         ),
         SettingItem(
@@ -332,6 +334,10 @@ enum SettingItems {
                 "Low Glucose Alarm Limit",
                 "High Glucose Alarm Limit"
             ],
+            scrollTargetLabels: [
+                "Low Glucose Alarm Limit": "Glucose Notifications",
+                "High Glucose Alarm Limit": "Glucose Notifications"
+            ],
             path: ["Notifications", "Trio Notifications"] // Glucose
         ),
         SettingItem(