diff --git a/ShadowsocksX-NG/AppDelegate.swift b/ShadowsocksX-NG/AppDelegate.swift index 4f6abc1..d42321b 100644 --- a/ShadowsocksX-NG/AppDelegate.swift +++ b/ShadowsocksX-NG/AppDelegate.swift @@ -151,6 +151,8 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele // Insert code here to tear down your application StopSSLocal() ProxyConfHelper.disableProxy() + let defaults = NSUserDefaults.standardUserDefaults() + defaults.setBool(false, forKey: "ShadowsocksOn") } func applyConfig() { diff --git a/ShadowsocksX-NG/Assets.xcassets/copyV1.imageset/Contents.json b/ShadowsocksX-NG/Assets.xcassets/copyV1.imageset/Contents.json new file mode 100644 index 0000000..6a32a15 --- /dev/null +++ b/ShadowsocksX-NG/Assets.xcassets/copyV1.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "copyV1.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ShadowsocksX-NG/Assets.xcassets/copyV1.imageset/copyV1.png b/ShadowsocksX-NG/Assets.xcassets/copyV1.imageset/copyV1.png new file mode 100644 index 0000000..49ab36c Binary files /dev/null and b/ShadowsocksX-NG/Assets.xcassets/copyV1.imageset/copyV1.png differ diff --git a/ShadowsocksX-NG/Assets.xcassets/copyV2.imageset/Contents.json b/ShadowsocksX-NG/Assets.xcassets/copyV2.imageset/Contents.json new file mode 100644 index 0000000..7ec6238 --- /dev/null +++ b/ShadowsocksX-NG/Assets.xcassets/copyV2.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "copyV2.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ShadowsocksX-NG/Assets.xcassets/copyV2.imageset/copyV2.png b/ShadowsocksX-NG/Assets.xcassets/copyV2.imageset/copyV2.png new file mode 100644 index 0000000..eb255af Binary files /dev/null and b/ShadowsocksX-NG/Assets.xcassets/copyV2.imageset/copyV2.png differ diff --git a/ShadowsocksX-NG/Assets.xcassets/copyV3.imageset/Contents.json b/ShadowsocksX-NG/Assets.xcassets/copyV3.imageset/Contents.json new file mode 100644 index 0000000..34d4c2e --- /dev/null +++ b/ShadowsocksX-NG/Assets.xcassets/copyV3.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "copyV3.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ShadowsocksX-NG/Assets.xcassets/copyV3.imageset/copyV3.png b/ShadowsocksX-NG/Assets.xcassets/copyV3.imageset/copyV3.png new file mode 100644 index 0000000..a7a99db Binary files /dev/null and b/ShadowsocksX-NG/Assets.xcassets/copyV3.imageset/copyV3.png differ diff --git a/ShadowsocksX-NG/Base.lproj/PreferencesWindowController.xib b/ShadowsocksX-NG/Base.lproj/PreferencesWindowController.xib index c3ff705..a00879e 100644 --- a/ShadowsocksX-NG/Base.lproj/PreferencesWindowController.xib +++ b/ShadowsocksX-NG/Base.lproj/PreferencesWindowController.xib @@ -181,7 +181,7 @@ - - - + + + + + + + @@ -459,5 +468,6 @@ DQ +