mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Remove duplicate ToolbarItemGroup in Mac app
This commit is contained in:
parent
851a0b6465
commit
09131d5873
@ -84,24 +84,6 @@ struct PostListView: View {
|
|||||||
showAllPosts: showAllPosts,
|
showAllPosts: showAllPosts,
|
||||||
postCount: $postCount
|
postCount: $postCount
|
||||||
)
|
)
|
||||||
.toolbar {
|
|
||||||
ToolbarItemGroup(placement: .primaryAction) {
|
|
||||||
if let selectedPost = model.selectedPost {
|
|
||||||
ActivePostToolbarView(activePost: selectedPost)
|
|
||||||
.alert(isPresented: $model.isPresentingNetworkErrorAlert, content: {
|
|
||||||
Alert(
|
|
||||||
title: Text("Connection Error"),
|
|
||||||
message: Text("""
|
|
||||||
There is no internet connection at the moment. Please reconnect or try again later.
|
|
||||||
"""),
|
|
||||||
dismissButton: .default(Text("OK"), action: {
|
|
||||||
model.isPresentingNetworkErrorAlert = false
|
|
||||||
})
|
|
||||||
)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.onDisappear {
|
.onDisappear {
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
self.model.selectedCollection = nil
|
self.model.selectedCollection = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user