From f31ca864834a5953540497a73fae69ae52df9c52 Mon Sep 17 00:00:00 2001 From: qinyuhang Date: Wed, 1 Feb 2017 19:24:39 +0800 Subject: [PATCH] Set Auto check update for false Now must manually check update --- ShadowsocksX-NG/AppDelegate.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ShadowsocksX-NG/AppDelegate.swift b/ShadowsocksX-NG/AppDelegate.swift index 4328c14..d5e855c 100644 --- a/ShadowsocksX-NG/AppDelegate.swift +++ b/ShadowsocksX-NG/AppDelegate.swift @@ -84,7 +84,8 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele "LocalHTTP.ListenAddress": "127.0.0.1", "LocalHTTP.ListenPort": NSNumber(value: 1087 as UInt16), "LocalHTTPOn": true, - "LocalHTTP.FollowGlobal": true + "LocalHTTP.FollowGlobal": true, + "AutoCheckUpdate": false ]) setUpMenu(defaults.bool(forKey: "enable_showSpeed")) @@ -193,7 +194,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele toggleRunning(toggleRunningMenuItem) } // Version Check! - checkForUpdate(mustShowAlert: false) + if defaults.bool(forKey: "AutoCheckUpdate"){ + checkForUpdate(mustShowAlert: false) + } } func applicationWillTerminate(_ aNotification: Notification) {