mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-12-21 11:10:08 +01:00
♻️ Ensure successful automatic check if written to NSUserDefaults
This commit is contained in:
@@ -46,11 +46,13 @@ class AppUpdater {
|
||||
latestVersionOnline = onlineVersion
|
||||
Log.info("The latest version read from '\(caskUrl.lastPathComponent)' is: v\(onlineVersion.computerReadable).")
|
||||
|
||||
Task { // Present this concurrently w/ returning the .success value
|
||||
if latestVersionOnline > currentVersion {
|
||||
await presentNewerVersionAvailableAlert()
|
||||
} else if interactive {
|
||||
await presentNoNewerVersionAvailableAlert()
|
||||
}
|
||||
}
|
||||
|
||||
return .success
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user