Skip to content

Commit 4018d8e

Browse files
authored
check if reset is needed during launch (#566)
1 parent 1623586 commit 4018d8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Loop/Managers/LoopAppManager.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ class LoopAppManager: NSObject {
289289
self.state = state.next
290290

291291
alertManager.playbackAlertsFromPersistence()
292+
293+
askUserToConfirmCrashIfNecessary()
292294
}
293295

294296
// MARK: - Life Cycle
@@ -401,7 +403,6 @@ class LoopAppManager: NSObject {
401403
func askUserToConfirmCrashIfNecessary() {
402404
deviceDataManager.pluginManager.availableSupports.forEach { supportUI in
403405
if supportUI.loopNeedsReset {
404-
supportUI.loopNeedsReset = false
405406
alertManager.presentConfirmCrashAlert() { [weak self] completion in
406407
guard let pumpManager = self?.deviceDataManager.pumpManager else {
407408
supportUI.resetLoop()

0 commit comments

Comments
 (0)