UpdateSputnik // Fix a conditioning error in dataDidSet(). (#244)

This commit is contained in:
ShikiSuen 2022-11-09 15:24:28 +08:00
parent 2800ec9f89
commit 05f2ba4526
1 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,8 @@ public class UpdateSputnik {
let intCurrentVersion = Int(dicMainBundle[kCFBundleVersionKey as String] as? String ?? ""),
let strCurrentVersionShortened = dicMainBundle["CFBundleShortVersionString"] as? String
else { return } // Shouldn't happen.
if intRemoteVersion <= intCurrentVersion, isCurrentCheckForced {
if intRemoteVersion <= intCurrentVersion {
guard isCurrentCheckForced else { return }
let alert = NSAlert()
alert.messageText = NSLocalizedString("Update Check Completed", comment: "")
alert.informativeText = NSLocalizedString("You are already using the latest version.", comment: "")