fix: isolate updater factory on main actor
This commit is contained in:
@@ -228,6 +228,7 @@ private final class StatusItemMouseHandlerView: NSView {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@MainActor
|
||||||
final class AppDelegate: NSObject, NSApplicationDelegate {
|
final class AppDelegate: NSObject, NSApplicationDelegate {
|
||||||
private var state: AppState?
|
private var state: AppState?
|
||||||
private let webChatAutoLogger = Logger(subsystem: "com.steipete.clawdis", category: "Chat")
|
private let webChatAutoLogger = Logger(subsystem: "com.steipete.clawdis", category: "Chat")
|
||||||
@@ -418,6 +419,7 @@ private func isDeveloperIDSigned(bundleURL: URL) -> Bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@MainActor
|
||||||
private func makeUpdaterController() -> UpdaterProviding {
|
private func makeUpdaterController() -> UpdaterProviding {
|
||||||
let bundleURL = Bundle.main.bundleURL
|
let bundleURL = Bundle.main.bundleURL
|
||||||
let isBundledApp = bundleURL.pathExtension == "app"
|
let isBundledApp = bundleURL.pathExtension == "app"
|
||||||
@@ -430,6 +432,7 @@ private func makeUpdaterController() -> UpdaterProviding {
|
|||||||
return SparkleUpdaterController(savedAutoUpdate: savedAutoUpdate)
|
return SparkleUpdaterController(savedAutoUpdate: savedAutoUpdate)
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
@MainActor
|
||||||
private func makeUpdaterController() -> UpdaterProviding {
|
private func makeUpdaterController() -> UpdaterProviding {
|
||||||
DisabledUpdaterController()
|
DisabledUpdaterController()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user