mirror of
https://github.com/qinyuhang/ShadowsocksX-NG-R.git
synced 2026-10-31 22:53:50 +00:00
Move "Copy HTTP Proxy Export" from preference panel to menu.
This commit is contained in:
@@ -27,13 +27,4 @@ class HTTPPreferencesWindowController: NSWindowController, NSWindowDelegate {
|
||||
.post(name: Notification.Name(rawValue: NOTIFY_HTTP_CONF_CHANGED), object: nil)
|
||||
}
|
||||
|
||||
@IBAction func copyExportCommand(_ sender: Any) {
|
||||
let command = "export http_proxy=http://\(address.stringValue):\(port.stringValue);export https_proxy=http://\(address.stringValue):\(port.stringValue);"
|
||||
NSPasteboard.general().clearContents()
|
||||
NSPasteboard.general().setString(command, forType: NSStringPboardType)
|
||||
let notification = NSUserNotification()
|
||||
notification.title = "Export Command Copied.".localized
|
||||
NSUserNotificationCenter.default
|
||||
.deliver(notification)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user