Check on foreground

This commit is contained in:
Max Goedjen 2020-11-11 16:16:39 -08:00
parent edf01cc6d4
commit 7de561af5d
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8

View File

@ -33,6 +33,9 @@ struct Secretive: App {
_ = LaunchAgentController().install()
}
}
.onReceive(NotificationCenter.default.publisher(for: NSApplication.willBecomeActiveNotification)) { _ in
agentStatusChecker.check()
}
}
.commands {
CommandGroup(after: CommandGroupPlacement.newItem) {