fix manager saving bug

This commit is contained in:
Duong Thai 2024-03-13 16:52:50 +07:00
parent 8b8e6880af
commit cc109471bf
2 changed files with 1 additions and 1 deletions

View file

@ -53,6 +53,7 @@ public struct RSSFeedManager: View {
ToolbarItem(placement: .topBarTrailing) {
Button("rss.rssFeedManager.action.done") {
dismiss()
moContext.refreshAllObjects()
try? moContext.save()
}
}

View file

@ -53,7 +53,6 @@ public struct RSSFeedView: View {
HStack {
Button {
feed.isShowing.toggle()
feed.managedObjectContext?.refreshAllObjects()
} label: {
Image(systemName: "eye")
.foregroundColor(Color(UIColor.secondaryLabel))