mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Use MainActor Task instead of GCD.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user