diff --git a/Secretive/App.swift b/Secretive/App.swift index 3ade857..eb4a82a 100644 --- a/Secretive/App.swift +++ b/Secretive/App.swift @@ -33,6 +33,9 @@ struct Secretive: App { _ = LaunchAgentController().install() } } + .onReceive(NotificationCenter.default.publisher(for: NSApplication.willBecomeActiveNotification)) { _ in + agentStatusChecker.check() + } } .commands { CommandGroup(after: CommandGroupPlacement.newItem) {