Quellcode durchsuchen

Fix scroll target mappings for Bolus Calculator conditional settings

Reduced Bolus Percentage and Super Bolus Percentage are displayed
inside SettingInputSection as conditionalLabel, but the scroll anchor
is registered under the parent label. Map all related search terms
to the actual anchor IDs.
Gordon Child vor 1 Monat
Ursprung
Commit
350680c3cf
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 4 2
      Trio/Sources/Modules/Settings/SettingItems.swift

+ 4 - 2
Trio/Sources/Modules/Settings/SettingItems.swift

@@ -221,10 +221,12 @@ enum SettingItems {
                 "Very Low Glucose Warning"
             ],
             scrollTargetLabels: [
+                "Reduced Bolus Percentage": "Enable Reduced Bolus Option",
                 "Enable Reduced Bolus Factor": "Enable Reduced Bolus Option",
-                "Reduced Bolus Factor": "Reduced Bolus Percentage",
+                "Reduced Bolus Factor": "Enable Reduced Bolus Option",
+                "Super Bolus Percentage": "Enable Super Bolus Option",
                 "Enable Super Bolus": "Enable Super Bolus Option",
-                "Super Bolus Factor": "Super Bolus Percentage"
+                "Super Bolus Factor": "Enable Super Bolus Option"
             ],
             path: ["Features", "Bolus Calculator"]
         ),