improve notification handling

fix crash on ocmpleting events
This commit is contained in:
neon443
2025-06-25 20:20:38 +01:00
parent 9841574d37
commit 6f870ffa4f
2 changed files with 16 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ struct CompleteEventButton: View {
progress = 0
timer = Timer(timeInterval: 0.02, repeats: true) { timer in
DispatchQueue.main.sync {
DispatchQueue.main.async {
guard completeInProgress else { return }
guard let timer = self.timer else { return }
guard timer.isValid else { return }