Fix: tapping task notification now marks it complete
Tap body → marks complete + navigates to tasks. Swipe action 'Mark Complete' → marks complete without opening app. TaskViewModel.reload() called on foreground to sync UserDefaults changes made while app was backgrounded. Co-Authored-By: Kutesir <tqwyy79vzn@privaterelay.appleid.com>
This commit is contained in:
@@ -88,6 +88,7 @@ struct ContentView: View {
|
||||
}
|
||||
.onChange(of: scenePhase) { phase in
|
||||
if phase == .active {
|
||||
taskVM.reload()
|
||||
NotificationManager.shared.reschedule(workoutVM: workoutVM, taskVM: taskVM)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user