Kaynağa Gözat

From watch/shortcut-> Via Watch/Shortcut

Daniel Snällfot 1 yıl önce
ebeveyn
işleme
ad428e0b6a

+ 1 - 1
FreeAPS/Sources/Shortcuts/Carbs/CarbPresetIntentRequest.swift

@@ -23,7 +23,7 @@ import Foundation
                 carbs: carbs,
                 fat: Decimal(quantityFat),
                 protein: Decimal(quantityProtein),
-                note: (note?.isEmpty ?? true) ? "From shortcut" : note!,
+                note: (note?.isEmpty ?? true) ? "Via Shortcut" : note!,
                 enteredBy: CarbsEntry.manual,
                 isFPU: false, fpuID: nil
             )],

+ 1 - 1
FreeAPSWatch WatchKit Extension/Views/CarbsView.swift

@@ -221,7 +221,7 @@ struct CarbsView: View {
                 let amountFat = Int(numberFormatter.string(from: fatAmount as NSNumber)!) ?? Int(fatAmount.rounded())
                 let amountProtein = Int(numberFormatter.string(from: proteinAmount as NSNumber)!) ??
                     Int(proteinAmount.rounded())
-                let note = "From watch" // Hard-coded note for entries from watch
+                let note = "Via Watch" // Hard-coded note for entries from watch
                 state.addMeal(amountCarbs, fat: amountFat, protein: amountProtein, note: note)
             }
             label: { Text("Save") }