Update Meshtastic/Views/Settings/AppSettings.swift

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Ben Meadors 2026-01-30 14:01:16 -06:00 committed by GitHub
parent 82640216ac
commit f921797aff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -159,7 +159,7 @@ struct AppSettings: View {
Logger.services.error("🗄 Error Deleting Meshtastic.sqlite file \(error, privacy: .public)")
}
}
await MeshPackets.shared.clearCoreDataDatabase(includeRoutes: true)
await MeshPackets.shared.clearCoreDataDatabase(includeRoutes: true, context: context)
clearNotifications()
context.refreshAllObjects()
}