Skip to content

Commit 3607f41

Browse files
committed
[LOOP-4483] Add prepareForDeactivation
1 parent 6d4a50f commit 3607f41

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Loop/Managers/LoopAppManager.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,8 @@ class LoopAppManager: NSObject {
370370
}
371371

372372
private func resetLoop() {
373+
deviceDataManager.pumpManager?.prepareForDeactivation({ _ in })
374+
373375
resetLoopUserDefaults()
374376
resetLoopDocuments()
375377
}

Loop/Managers/OnboardingManager.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@ extension OnboardingManager: TherapySettingsProvider {
435435

436436
extension OnboardingManager: OnboardingProvider {
437437
var allowDebugFeatures: Bool { FeatureFlags.allowDebugFeatures } // NOTE: DEBUG FEATURES - DEBUG AND TEST ONLY
438-
var studyProduct: StudyProduct { StudyProduct(rawValue: UserDefaults.appGroup?.studyProductSelection ?? "none") ?? .none }
439438
}
440439

441440
// MARK: - OnboardingUI

0 commit comments

Comments
 (0)