Skip to content

Commit

Permalink
Bookmarks view #59: Fix: Do not add bookmark translateAction when boo…
Browse files Browse the repository at this point in the history
…kmark view is disabled.
  • Loading branch information
filimo committed Jan 11, 2020
1 parent 8ca86f7 commit a184212
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ struct StatusBarView_Bookmarks: View {
Button(
action: {
self.bookmarksStore.items.append(text)
self.store.translateAction.add(.bookmarks(text: text))
if ViewsStore.shared.enabledViews.contains(.bookmarks) {
self.store.translateAction.add(.bookmarks(text: text))
}
},
label: { Image.sfSymbol("bookmark") }
)
Expand Down

0 comments on commit a184212

Please sign in to comment.