Do various code cleanups.

This commit is contained in:
Brent Simmons committed 2025-11-18 20:31:25 -08:00
1 parent 6d55acbb14
commit bdb322f7fc
2 files changed
+5 -7

No files matched your search

+4 -6
View File
@@ -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()
}
}
}
+1 -1
View File
@@ -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")