From 520571b96b110a9d38c48ca4e49d78d69edb4e68 Mon Sep 17 00:00:00 2001 From: Laurent Date: Thu, 7 Dec 2023 11:12:51 +0100 Subject: [PATCH] Fix issue with restoring --- LeCountdown/Conductor.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LeCountdown/Conductor.swift b/LeCountdown/Conductor.swift index f4daadb..53ffd21 100644 --- a/LeCountdown/Conductor.swift +++ b/LeCountdown/Conductor.swift @@ -351,7 +351,7 @@ class Conductor: ObservableObject { func restoreSoundPlayers() { for (countdownId, sequence) in self.currentCountdowns { - if !self._delayedSoundPlayers.contains(where: { $0.key == countdownId }) { + if !self._delayedSoundPlayers.contains(where: { $0.key.starts(with: countdownId) }) { let context = PersistenceController.shared.container.viewContext if let countdown: Countdown = context.object(stringId: countdownId) {