We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dad461 commit d124444Copy full SHA for d124444
Loop/Managers/LoopAppManager.swift
@@ -427,14 +427,14 @@ class LoopAppManager: NSObject {
427
}
428
429
private func resetLoop() {
430
- deviceDataManager.pluginManager.availableSupports.enumerated().forEach { index, supportUI in
+ deviceDataManager.pluginManager.availableSupports.forEach { supportUI in
431
supportUI.loopWillReset()
432
-
433
- if index == deviceDataManager.pluginManager.availableSupports.count - 1 {
434
- resetLoopDocuments()
435
- resetLoopUserDefaults()
436
- }
437
+ }
+
+ resetLoopDocuments()
+ resetLoopUserDefaults()
438
supportUI.loopDidReset()
439
440
0 commit comments