Remove most uses of AppDelegate.appDelegate on iOS.

This commit is contained in:
Brent Simmons
2025-02-01 13:28:49 -08:00
parent 2fed6d3cb3
commit 900cbabe71
10 changed files with 65 additions and 24 deletions

View File

@@ -184,7 +184,7 @@ final class TimelineViewController: UITableViewController, UndoableCommandRunner
// This is a hack to make sure that an error dialog doesn't interfere with dismissing the refreshControl.
// If the error dialog appears too closely to the call to endRefreshing, then the refreshControl never disappears.
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
appDelegate.manualRefresh(errorHandler: ErrorHandler.present(self))
ManualRefreshNotification.post(errorHandler: ErrorHandler.present(self), sender: self)
}
}