mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Save changes to local store when post status changes
This commit is contained in:
parent
d3e89e2a45
commit
4d37cae4bf
@ -142,6 +142,9 @@ struct PostEditorView: View {
|
||||
} else {
|
||||
self.model.editor.clearLastDraft()
|
||||
}
|
||||
DispatchQueue.main.async {
|
||||
LocalStorageManager().saveContext()
|
||||
}
|
||||
})
|
||||
.onAppear(perform: {
|
||||
self.selectedCollection = collections.first { $0.alias == post.collectionAlias }
|
||||
|
Loading…
Reference in New Issue
Block a user