Skip to content

Commit fd99f16

Browse files
committed
Merge branch 'develop'
2 parents 9ce6b01 + 7a9b2eb commit fd99f16

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

ShadowsocksX-NG/Base.lproj/PreferencesWinController.xib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
</textField>
191191
<button translatesAutoresizingMaskIntoConstraints="NO" id="tGd-pe-2xJ">
192192
<rect key="frame" x="240" y="108" width="222" height="18"/>
193-
<buttonCell key="cell" type="check" title="Enable Udp Replay" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="R3v-iN-zu8">
193+
<buttonCell key="cell" type="check" title="Enable UDP Relay" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="R3v-iN-zu8">
194194
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
195195
<font key="font" metaFont="system"/>
196196
</buttonCell>

ShadowsocksX-NG/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.5.0</string>
20+
<string>1.5.1</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleURLTypes</key>
@@ -36,7 +36,7 @@
3636
</dict>
3737
</array>
3838
<key>CFBundleVersion</key>
39-
<string>5</string>
39+
<string>1</string>
4040
<key>LSApplicationCategoryType</key>
4141
<string>public.app-category.utilities</string>
4242
<key>LSMinimumSystemVersion</key>

ShadowsocksX-NG/LaunchAgentUtils.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ func SyncSSLocal() {
151151
changed = changed || generateSSLocalLauchAgentPlist()
152152
let mgr = ServerProfileManager.instance
153153
if mgr.activeProfileId != nil {
154-
changed = changed || writeSSLocalConfFile((mgr.getActiveProfile()?.toJsonConfig())!)
154+
if let profile = mgr.getActiveProfile() {
155+
changed = changed || writeSSLocalConfFile((profile.toJsonConfig()))
156+
}
155157

156158
let on = UserDefaults.standard.bool(forKey: "ShadowsocksOn")
157159
if on {

0 commit comments

Comments
 (0)