Add labels to swipe actions to match iOS

This commit is contained in:
Jed Fox 2021-04-06 17:34:05 -04:00
parent 0c2f79f1b5
commit 3609b6f977
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1

View File

@ -941,7 +941,7 @@ extension TimelineViewController: NSTableViewDelegate {
switch edge {
case .leading:
let action = NSTableViewRowAction(style: .regular, title: "") { (action, row) in
let action = NSTableViewRowAction(style: .regular, title: article.status.read ? "Unread" : "Read") { (action, row) in
self.toggleArticleRead(article);
tableView.rowActionsVisible = false
}
@ -949,7 +949,7 @@ extension TimelineViewController: NSTableViewDelegate {
return [action]
case .trailing:
let action = NSTableViewRowAction(style: .regular, title: "") { (action, row) in
let action = NSTableViewRowAction(style: .regular, title: article.status.starred ? "Unstar" : "Star") { (action, row) in
self.toggleArticleStarred(article);
tableView.rowActionsVisible = false
}