OSDN Git Service

関数名を変更
[kcd/KCD.git] / KCD / AppDelegate.swift
index 2448d95..2422ad6 100644 (file)
@@ -8,12 +8,6 @@
 
 import Cocoa
 
-private extension Selector {
-    
-    static let fireInAppDelegate = #selector(AppDelegate.fire(_:))
-    
-}
-
 @NSApplicationMain
 final class AppDelegate: NSObject {
     
@@ -22,7 +16,7 @@ final class AppDelegate: NSObject {
         // swiftlint:disable:next force_cast
         return NSApplication.shared.delegate as! AppDelegate
     }
-    
+        
     let appNameForUserAgent: String = "KCD(1.9b17) is not Safari/603.3.8"
     let fleetManager: FleetManager = FleetManager()
     
@@ -178,8 +172,7 @@ extension AppDelegate {
         
         guard let path = Bundle.main.path(forResource: "RemoveDatabaseFileAndRestart", ofType: "app") else {
             
-            print("Can not find RemoveDatabaseFileAndRestart.app")
-            return
+            return Logger.shared.log("Can not find RemoveDatabaseFileAndRestart.app")
         }
         
         let process = Process()
@@ -275,7 +268,7 @@ extension AppDelegate: NSApplicationDelegate {
         NSUserNotificationCenter.default.delegate = self
         Timer.scheduledTimer(timeInterval: 0.33,
                              target: self,
-                             selector: .fireInAppDelegate,
+                             selector: #selector(AppDelegate.fire(_:)),
                              userInfo: nil,
                              repeats: true)
     }