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) { ToolbarItem(placement: .topBarTrailing) {
Button("rss.rssFeedManager.action.done") { Button("rss.rssFeedManager.action.done") {
dismiss() dismiss()
moContext.refreshAllObjects()
try? moContext.save() try? moContext.save()
} }
} }

View file

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