Browse Source

Make sure that cgm deletion propagates to settings

Sam King 1 year ago
parent
commit
426a46fd54
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Trio/Sources/APS/FetchGlucoseManager.swift

+ 2 - 0
Trio/Sources/APS/FetchGlucoseManager.swift

@@ -125,6 +125,8 @@ final class BaseFetchGlucoseManager: FetchGlucoseManager, Injectable {
             cgmGlucoseSourceType: CGMType.none,
             cgmGlucosePluginId: ""
         )
+        settingsManager.settings.cgm = .none
+        settingsManager.settings.cgmPluginIdentifier = ""
     }
 
     func saveConfigManager() {