feat: added a new API (SMAppService) that starts the application when login (available on macOS 13, for the oldest version the legacy API is using)

This commit is contained in:
Serhiy Mytrovtsiy
2023-01-14 07:19:50 +01:00
parent da3e2f8199
commit f5d708d103
2 changed files with 49 additions and 0 deletions

View File

@@ -103,6 +103,8 @@ extension AppDelegate {
if !Store.shared.exist(key: "runAtLoginInitialized") {
Store.shared.set(key: "runAtLoginInitialized", value: true)
LaunchAtLogin.isEnabled = true
} else {
LaunchAtLogin.migrate()
}
if Store.shared.exist(key: "dockIcon") {