ソースを参照

Quick bolus: fix settings search paths after Treatments regrouping

Update Bolus Calculator and Meal Settings paths to reflect the new
Features → Treatments → [item] hierarchy. Add a missing Quick Bolus
search entry with the same path.
t1dude 1 週間 前
コミット
8441495fb7
1 ファイル変更8 行追加2 行削除
  1. 8 2
      Trio/Sources/Modules/Settings/SettingItems.swift

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

@@ -223,7 +223,13 @@ enum SettingItems {
                 "Enable Super Bolus": "Enable Super Bolus Option",
                 "Super Bolus Factor": "Enable Super Bolus Option"
             ],
-            path: ["Features", "Bolus Calculator"]
+            path: ["Features", "Treatments", "Bolus Calculator"]
+        ),
+        SettingItem(
+            title: "Quick Bolus",
+            view: .quickBolusConfig,
+            searchContents: ["Enable Quick Bolus"],
+            path: ["Features", "Treatments", "Quick Bolus"]
         ),
         SettingItem(
             title: "Meal Settings",
@@ -247,7 +253,7 @@ enum SettingItems {
                 "Fat and Protein Percentage": "Enable Fat and Protein Entries",
                 "FPU": "Enable Fat and Protein Entries"
             ],
-            path: ["Features", "Meal Settings"]
+            path: ["Features", "Treatments", "Meal Settings"]
         ),
         SettingItem(
             title: "Shortcuts",