mirror of
https://github.com/shadowsocks/ShadowsocksX-NG.git
synced 2026-10-21 15:33:52 +00:00
Fixes copy server profile url.
Copy url as a string instead of the url type.
This commit is contained in:
@@ -48,7 +48,7 @@ class ShareServerProfilesWindowController: NSWindowController
|
||||
if profile.isValid(), let url = profile.URL() {
|
||||
let pb = NSPasteboard.general
|
||||
pb.clearContents()
|
||||
if pb.writeObjects([url as NSPasteboardWriting]) {
|
||||
if pb.writeObjects([url.absoluteString as NSPasteboardWriting]) {
|
||||
NSLog("Copy URL to clipboard")
|
||||
} else {
|
||||
NSLog("Failed to copy URL to clipboard")
|
||||
|
||||
Reference in New Issue
Block a user