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