mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: fixed a bug in the setup process that set "Start at login" to on even if the user chooses to not turn that on.
This commit is contained in:
@@ -86,10 +86,7 @@ extension AppDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal func defaultValues() {
|
internal func defaultValues() {
|
||||||
if !Store.shared.exist(key: "runAtLoginInitialized") {
|
if Store.shared.exist(key: "runAtLoginInitialized") {
|
||||||
Store.shared.set(key: "runAtLoginInitialized", value: true)
|
|
||||||
LaunchAtLogin.isEnabled = true
|
|
||||||
} else {
|
|
||||||
LaunchAtLogin.migrate()
|
LaunchAtLogin.migrate()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user