Check on foreground

This commit is contained in:
Max Goedjen
2020-11-11 16:16:39 -08:00
parent edf01cc6d4
commit 7de561af5d

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) {