mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-04-10 17:47:19 +00:00
Restore just launched checker.
This commit is contained in:
parent
915f0f9075
commit
848b8968fc
@ -35,6 +35,10 @@ struct AppDelegate: App {
|
||||
if !hasRunSetup {
|
||||
showingSetup = true
|
||||
}
|
||||
if agentStatusChecker.running && justUpdatedChecker.justUpdated {
|
||||
_ = LaunchAgentController().install()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
.commands {
|
||||
|
@ -4,12 +4,8 @@ import ServiceManagement
|
||||
struct LaunchAgentController {
|
||||
|
||||
func install() -> Bool {
|
||||
setEnabled(true)
|
||||
}
|
||||
|
||||
func relaunch() {
|
||||
_ = setEnabled(false)
|
||||
_ = setEnabled(true)
|
||||
return setEnabled(true)
|
||||
}
|
||||
|
||||
private func setEnabled(_ enabled: Bool) -> Bool {
|
||||
|
Loading…
Reference in New Issue
Block a user