fix connect at launch not work as expected

This commit is contained in:
秦宇航
2017-07-24 08:00:00 +08:00
parent 5ce8e611e2
commit eb3815defe
+1
View File
@@ -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)
}