From ad747021e51ef16ecdfc71385309943a22407325 Mon Sep 17 00:00:00 2001 From: Qiu Yuzhou Date: Sat, 25 Mar 2017 14:22:25 +0800 Subject: [PATCH] MSIC --- ShadowsocksX-NG/AppDelegate.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ShadowsocksX-NG/AppDelegate.swift b/ShadowsocksX-NG/AppDelegate.swift index 86b655e..0ba021f 100755 --- a/ShadowsocksX-NG/AppDelegate.swift +++ b/ShadowsocksX-NG/AppDelegate.swift @@ -20,8 +20,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele var allInOnePreferencesWinCtrl: PreferencesWinController! var toastWindowCtrl: ToastWindowController! - var launchAtLoginController: LaunchAtLoginController = LaunchAtLoginController() - @IBOutlet weak var window: NSWindow! @IBOutlet weak var statusMenu: NSMenu! @@ -53,7 +51,8 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele static let StatusItemIconWidth:CGFloat = 20 func applicationDidFinishLaunching(_ aNotification: Notification) { - // Insert code here to initialize your application + + _ = LaunchAtLoginController()// Ensure set when launch NSUserNotificationCenter.default.delegate = self