From df3914eeed83d3e9d7f54e8ba2f98d03af8831c4 Mon Sep 17 00:00:00 2001 From: zonble Date: Tue, 11 Jan 2022 02:35:31 +0800 Subject: [PATCH] Fixes a minor bug in the new Swift app delegate. --- Source/AppDelegate.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/AppDelegate.swift b/Source/AppDelegate.swift index c2fd7a3a..620fbbfe 100644 --- a/Source/AppDelegate.swift +++ b/Source/AppDelegate.swift @@ -106,7 +106,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NonModalAlertWindowControlle let request = URLRequest(url: updateInfoURL, cachePolicy: .reloadIgnoringLocalCacheData, timeoutInterval: kTimeoutInterval) func showNoUpdateAvailableAlert() { - + NonModalAlertWindowController.shared.show(title: NSLocalizedString("Check for Update Completed", comment: ""), content: NSLocalizedString("You are already using the latest version of McBopomofo.", comment: ""), confirmButtonTitle: NSLocalizedString("OK", comment: "") , cancelButtonTitle: nil, cancelAsDefault: false, delegate: nil) } let task = URLSession.shared.dataTask(with: request) { data, response, error in @@ -152,6 +152,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NonModalAlertWindowControlle showNoUpdateAvailableAlert() } } + return } guard let siteInfoURLString = plist[kUpdateInfoSiteKey] as? String,