From c8860fc36fd7883ab1434902982420fb6ea6172a Mon Sep 17 00:00:00 2001 From: Yishi Lin Date: Wed, 15 May 2019 02:36:41 +0800 Subject: [PATCH] Fix #263 --- pass/Controllers/PasswordsViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pass/Controllers/PasswordsViewController.swift b/pass/Controllers/PasswordsViewController.swift index d356875..c9aa608 100644 --- a/pass/Controllers/PasswordsViewController.swift +++ b/pass/Controllers/PasswordsViewController.swift @@ -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)