Skip to content

Commit 71b3b01

Browse files
committed
Fix that CGEventObserver can't start on launch
1 parent a2a7132 commit 71b3b01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Core/Sources/Service/RealtimeSuggestionController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public actor RealtimeSuggestionController {
2828
await start(by: xcode.processIdentifier)
2929
}
3030
let sequence = NSWorkspace.shared.notificationCenter
31-
.notifications(named: NSWorkspace.didLaunchApplicationNotification)
31+
.notifications(named: NSWorkspace.didActivateApplicationNotification)
3232
for await notification in sequence {
3333
try Task.checkCancellation()
3434
guard let app = notification

0 commit comments

Comments
 (0)