瀏覽代碼

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 1 月之前
父節點
當前提交
350680c3cf
共有 1 個文件被更改,包括 4 次插入2 次删除
  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"]
         ),