mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 09:18:18 +00:00
Do various code cleanups.
This commit is contained in:
1 parent
6d55acbb14
commit
bdb322f7fc
2 files changed
+5
-7
No files matched your search
@@ -23,7 +23,7 @@ let appName = "NetNewsWire"
|
||||
@MainActor var appDelegate: AppDelegate!
|
||||
|
||||
@main
|
||||
final class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations, UNUserNotificationCenterDelegate, UnreadCountProvider, SPUStandardUserDriverDelegate, SPUUpdaterDelegate {
|
||||
@MainActor final class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations, UNUserNotificationCenterDelegate, UnreadCountProvider, SPUStandardUserDriverDelegate, SPUUpdaterDelegate {
|
||||
|
||||
static private let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "AppDelegate")
|
||||
|
||||
@@ -37,11 +37,9 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidat
|
||||
private var shuttingDown = false {
|
||||
didSet {
|
||||
if shuttingDown {
|
||||
MainActor.assumeIsolated {
|
||||
refreshTimer?.shuttingDown = shuttingDown
|
||||
refreshTimer?.invalidate()
|
||||
ArticleStatusSyncTimer.shared.stop()
|
||||
}
|
||||
refreshTimer?.shuttingDown = shuttingDown
|
||||
refreshTimer?.invalidate()
|
||||
ArticleStatusSyncTimer.shared.stop()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ import Secrets
|
||||
@MainActor var appDelegate: AppDelegate!
|
||||
|
||||
@main
|
||||
final class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, UnreadCountProvider {
|
||||
@MainActor final class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, UnreadCountProvider {
|
||||
|
||||
private let backgroundTaskDispatchQueue = DispatchQueue.init(label: "BGTaskScheduler")
|
||||
|
||||
|
||||
Reference in new issue
Block a user