1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 03:50:08 +02:00

🐛 Fix crash with check for updates

This commit is contained in:
2023-01-11 17:50:47 +01:00
parent 6eea08cd4f
commit 300b10c5d8

View File

@ -174,8 +174,8 @@ class MainMenu: NSObject, NSWindowDelegate, NSMenuDelegate, PhpSwitcherDelegate
NSApplication.shared.terminate(nil)
}
@objc func checkForUpdates() async {
await AppUpdateChecker.checkIfNewerVersionIsAvailable(initiatedFromBackground: false)
@objc func checkForUpdates() {
Task { await AppUpdateChecker.checkIfNewerVersionIsAvailable(initiatedFromBackground: false) }
}
// MARK: - Menu Delegate