Add pull to refresh to the timeline.

This commit is contained in:
Maurice Parker
2019-04-18 14:36:22 -05:00
parent 04dab356eb
commit c9cf35ed1f
2 changed files with 20 additions and 4 deletions

View File

@@ -76,10 +76,6 @@ class MasterViewController: UITableViewController, UndoableCommandRunner {
// MARK: Notifications
@objc private func refreshAccounts(_ sender: Any) {
AccountManager.shared.refreshAll()
}
@objc dynamic func progressDidChange(_ notification: Notification) {
if AccountManager.shared.combinedRefreshProgress.isComplete {
refreshControl?.endRefreshing()
@@ -537,6 +533,10 @@ extension MasterViewController: MasterTableViewCellDelegate {
private extension MasterViewController {
@objc private func refreshAccounts(_ sender: Any) {
AccountManager.shared.refreshAll()
}
func rebuildBackingStoresAndReloadDataIfNeeded() {
if !animatingChanges && !BatchUpdate.shared.isPerforming {
treeController.rebuild()