We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f796ff0 commit b011383Copy full SHA for b011383
1 file changed
apps/macos/Sources/OpenClaw/LaunchAgentManager.swift
@@ -26,11 +26,10 @@ enum LaunchAgentManager {
26
if enabled {
27
let persist = writePlist ?? { self.writePlist(bundlePath: $0) }
28
persist(bundlePath)
29
- let alreadyLoaded: Bool
30
- if let loaded {
31
- alreadyLoaded = loaded
+ let alreadyLoaded = if let loaded {
+ loaded
32
} else {
33
- alreadyLoaded = await self.isLoaded()
+ await self.isLoaded()
34
}
35
// Startup hydrates the toggle from launchd. Reinstalling the active job here
36
// would boot out the app that is still responsible for bootstrapping it again.
0 commit comments