Use MainActor Task instead of GCD.

This commit is contained in:
Brent Simmons
2023-07-09 22:54:55 -07:00
parent 1fa9fa5e10
commit 1be7e680d0
5 changed files with 19 additions and 20 deletions

View File

@@ -106,11 +106,10 @@ enum TimelineSourceMode {
NotificationCenter.default.addObserver(self, selector: #selector(articleThemeNamesDidChangeNotification(_:)), name: .ArticleThemeNamesDidChangeNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(currentArticleThemeDidChangeNotification(_:)), name: .CurrentArticleThemeDidChangeNotification, object: nil)
DispatchQueue.main.async {
Task { @MainActor in
self.updateWindowTitle()
}
}
// MARK: - API