ソースを参照

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"]
         ),