Skip to content

Commit

Permalink
Set right bar button items correctly (#2401)
Browse files Browse the repository at this point in the history
setRightBarButton seems to do something differently than setBarButonItems
  • Loading branch information
zeitschlag committed Nov 18, 2024
1 parent 562aa18 commit b1a87d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deltachat-ios/Controller/ChatListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ class ChatListViewController: UITableViewController {
titleView.text = String.localized("chat_archived_label")
if !handleMultiSelectionTitle() {
navigationItem.setLeftBarButton(nil, animated: true)
navigationItem.setRightBarButton(markReadButton, animated: true)
navigationItem.setRightBarButtonItems([markReadButton], animated: true)
}
updateMarkReadButton()
} else {
Expand All @@ -783,7 +783,7 @@ class ChatListViewController: UITableViewController {
updateAccountButton()

if dcContext.getProxies().isEmpty {
navigationItem.setRightBarButton(newButton, animated: true)
navigationItem.setRightBarButtonItems([newButton], animated: true)
} else {
updateProxyButton()
navigationItem.setRightBarButtonItems([newButton, proxyShieldButton], animated: true)
Expand All @@ -806,7 +806,7 @@ class ChatListViewController: UITableViewController {
let cnt = tableView.indexPathsForSelectedRows?.count ?? 0
titleView.text = String.localized(stringID: "n_selected", parameter: cnt)
navigationItem.setLeftBarButton(cancelButton, animated: true)
navigationItem.setRightBarButton(markReadButton, animated: true)
navigationItem.setRightBarButtonItems([markReadButton], animated: true)
updateMarkReadButton()
return true
}
Expand Down

0 comments on commit b1a87d0

Please sign in to comment.