소스 검색

fix chatlist's multi-edit 'Cancel' button

B. Petersen 2 년 전
부모
커밋
6b2d8c8ad5
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      deltachat-ios/Controller/ChatListController.swift

+ 2 - 3
deltachat-ios/Controller/ChatListController.swift

@@ -608,14 +608,13 @@ class ChatListController: UITableViewController, AccountSwitcherHandler {
         } else {
             titleView.text = DcUtils.getConnectivityString(dcContext: dcContext, connectedString: String.localized("pref_chats"))
             if !handleMultiSelectionTitle() {
-                navigationItem.setLeftBarButton(nil, animated: true)
+                navigationItem.setLeftBarButton(accountButton, animated: false)
+                updateAccountButton()
                 navigationItem.setRightBarButton(newButton, animated: true)
                 if dcContext.getConnectivity() >= DC_CONNECTIVITY_CONNECTED {
                     titleView.accessibilityHint = "\(String.localized("connectivity_connected")): \(String.localized("a11y_connectivity_hint"))"
                 }
             }
-            navigationItem.setLeftBarButton(accountButton, animated: false)
-            updateAccountButton()
         }
         titleView.isUserInteractionEnabled = !tableView.isEditing
         titleView.sizeToFit()