Fix issue with restoring

splits
Laurent 2 years ago
parent 732fe69d4e
commit 520571b96b
  1. 2
      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) {

Loading…
Cancel
Save