Преглед изворни кода

Merge pull request #302 from bjorkert/upload-watch-carbs

Bugfix: Upload carbs registered using Watch app to Nightscout
Deniz Cengiz пре 1 година
родитељ
комит
92294ab8ef
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      Trio/Sources/Services/WatchManager/AppleWatchManager.swift

+ 2 - 0
Trio/Sources/Services/WatchManager/AppleWatchManager.swift

@@ -607,6 +607,7 @@ final class BaseWatchManager: NSObject, WCSessionDelegate, Injectable, WatchMana
                 carbEntry.date = date
                 carbEntry.note = "Via Watch"
                 carbEntry.isFPU = false // set this to false to ensure watch-entered carbs are displayed in main chart
+                carbEntry.isUploadedToNS = false
 
                 do {
                     guard context.hasChanges else { return }
@@ -646,6 +647,7 @@ final class BaseWatchManager: NSObject, WCSessionDelegate, Injectable, WatchMana
                     carbEntry.date = date
                     carbEntry.note = "Via Watch"
                     carbEntry.isFPU = false // set this to false to ensure watch-entered carbs are displayed in main chart
+                    carbEntry.isUploadedToNS = false
 
                     guard context.hasChanges else { return }
                     try context.save()