mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: added an error window when the update failed
This commit is contained in:
@@ -103,7 +103,11 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
|
||||
debug("Downloading new version of app...")
|
||||
if let url = URL(string: uri) {
|
||||
updater.download(url, completion: { path in
|
||||
updater.install(path: path)
|
||||
updater.install(path: path) { error in
|
||||
if let error {
|
||||
showAlert("Error update Stats", error, .critical)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user