AppDelegate // Use mgrPrefs.checkUpdateAutomatically.

This commit is contained in:
ShikiSuen 2022-06-02 01:08:04 +08:00
parent 758642e0cf
commit e5d8e8fe98
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, ctlNonModalAlertWindowDelega
mgrPrefs.setMissingDefaults()
// 使
if UserDefaults.standard.object(forKey: VersionUpdateApi.kCheckUpdateAutomatically) != nil {
if mgrPrefs.checkUpdateAutomatically {
checkForUpdate()
}
}
@ -113,7 +113,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, ctlNonModalAlertWindowDelega
// time for update?
if !forced {
if UserDefaults.standard.bool(forKey: VersionUpdateApi.kCheckUpdateAutomatically) == false {
if !mgrPrefs.checkUpdateAutomatically {
return
}
let now = Date()