mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 13:12:53 +00:00
Deleting a local playlist from its own detail view took the app down every time: the model is gone the moment the context saves, dismissal is animated so the view renders at least once more, and the summary line under the title reads the playlist's total duration. Reading a deleted model traps in SwiftData with "context is missing", which is a fatal error rather than a nil. The state is cleared before the deletion now, so the renders that follow have nothing to reach for. Everything else the view shows about a local playlist is a copy — the rows are `Video` values built at load time — so letting the model go costs the dismissal nothing. Predates the accounts revamp; the same three lines are on `main`.