diff --git a/ShadowsocksX-NG/AppDelegate.swift b/ShadowsocksX-NG/AppDelegate.swift index 84a5b33a..ad387d56 100644 --- a/ShadowsocksX-NG/AppDelegate.swift +++ b/ShadowsocksX-NG/AppDelegate.swift @@ -202,6 +202,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele // SyncSSLocal() if defaults.bool(forKey: "ConnectAtLaunch") && ServerProfileManager.instance.getActiveProfileId() != "" { + defaults.set(false, forKey: "ShadowsocksOn") toggleRunning(toggleRunningMenuItem) }