Skip to content

Commit

Permalink
Bookmarks view #59: Move bookmarks actions to menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
filimo committed Dec 6, 2019
1 parent 06821f7 commit 6a3c80b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,20 @@ struct BookmarksView_Controls: View {
var body: some View {
HStack {
Text("\(store.bookmarks.checked.count)/\(store.bookmarks.count)")
Button(action: {
self.showConfirm = true
}, label: { Text("Remove all") })
Button(action: {
let items = Clipboard.string.split(separator: "\n")
self.store.bookmarks.append(items: items)
}, label: { Text("Paste to") })
Button(action: {
Clipboard.copy(self.store.bookmarks.joined(separator: "\n"))
}, label: { Text("Copy to") })
MenuButton("Actions") {
Button(action: {
Clipboard.copy(self.store.bookmarks.joined(separator: "\n"))
}, label: { Text("Copy bookmarks to Clipboard") })
Button(action: {
let items = Clipboard.string.split(separator: "\n")
self.store.bookmarks.append(items: items)
}, label: { Text("Paste bookmarks separated by \\n from Clipboard") })
Button(action: {
self.showConfirm = true
}, label: { Text("Remove all bookmarks") })
}
.fixedSize()
.menuButtonStyle(BorderlessButtonMenuButtonStyle())
}
.alert(isPresented: $showConfirm) {
Alert(
Expand Down
2 changes: 1 addition & 1 deletion ReaderTranslatorMac/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>464</string>
<string>475</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.education</string>
<key>LSMinimumSystemVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion ReaderTranslatorSafari/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>724</string>
<string>735</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSAppleEventsUsageDescription</key>
Expand Down

0 comments on commit 6a3c80b

Please sign in to comment.