mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-03 05:49:25 +00:00
fix manager saving bug
This commit is contained in:
parent
8b8e6880af
commit
cc109471bf
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue