From b781400f45d9c33890022c41546f855eea7a635f Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sat, 21 May 2022 11:17:35 +0800 Subject: [PATCH] AppDelegate // Merge method checkForUpdate(). --- Source/Modules/AppDelegate.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Source/Modules/AppDelegate.swift b/Source/Modules/AppDelegate.swift index 92ac189d..1beee07c 100644 --- a/Source/Modules/AppDelegate.swift +++ b/Source/Modules/AppDelegate.swift @@ -105,11 +105,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, ctlNonModalAlertWindowDelega NSApp.setActivationPolicy(.accessory) } - func checkForUpdate() { - checkForUpdate(forced: false) - } - - func checkForUpdate(forced: Bool) { + func checkForUpdate(forced: Bool = false) { if checkTask != nil { // busy return