From 99595faafa0a6afb145c9165b3a9781f4b124e53 Mon Sep 17 00:00:00 2001 From: Qiu Yuzhou Date: Tue, 8 May 2018 11:25:38 +0800 Subject: [PATCH] Add plugins help link. --- .../PreferencesWindowController.xib | 20 +++++++++++++++---- .../PreferencesWindowController.swift | 5 +++++ 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/ShadowsocksX-NG/Base.lproj/PreferencesWindowController.xib b/ShadowsocksX-NG/Base.lproj/PreferencesWindowController.xib index 6411dda..a448a0f 100644 --- a/ShadowsocksX-NG/Base.lproj/PreferencesWindowController.xib +++ b/ShadowsocksX-NG/Base.lproj/PreferencesWindowController.xib @@ -1,8 +1,8 @@ - + - + @@ -158,7 +158,7 @@ - + @@ -520,6 +520,16 @@ + @@ -528,7 +538,7 @@ - + @@ -555,6 +565,7 @@ + @@ -569,6 +580,7 @@ + diff --git a/ShadowsocksX-NG/PreferencesWindowController.swift b/ShadowsocksX-NG/PreferencesWindowController.swift index eb9514d..d105ba4 100644 --- a/ShadowsocksX-NG/PreferencesWindowController.swift +++ b/ShadowsocksX-NG/PreferencesWindowController.swift @@ -204,6 +204,11 @@ class PreferencesWindowController: NSWindowController } } + @IBAction func openPluginHelp(_ sender: Any) { + let url = URL(string: "https://github.com/shadowsocks/ShadowsocksX-NG/wiki/SIP003-Plugin") + NSWorkspace.shared.open(url!) + } + @IBAction func copyCurrentProfileURL2Pasteboard(_ sender: NSButton) { let index = profilesTableView.selectedRow if index >= 0 {