mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
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:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user