This commit is contained in:
Yishi Lin 2019-05-15 02:36:41 +08:00
parent 715b8c892f
commit c8860fc36f

View file

@ -555,6 +555,8 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
}
@objc func actOnReloadTableViewRelatedNotification() {
// Reset selectedScopeButtonIndex to make sure the correct reloadTableView
searchController.searchBar.selectedScopeButtonIndex = 0
DispatchQueue.main.async { [weak weakSelf = self] in
guard let strongSelf = weakSelf else { return }
strongSelf.initPasswordsTableEntries(parent: nil)