Do not added "{}" around copied tokens.
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -227,7 +227,7 @@ class MetadataPrefsViewController : NSViewController, NSTableViewDelegate, NSTab
|
|||||||
if let data = try? JSONEncoder().encode(tokens) {
|
if let data = try? JSONEncoder().encode(tokens) {
|
||||||
pboard.setData(data, forType: pasteboardType)
|
pboard.setData(data, forType: pasteboardType)
|
||||||
}
|
}
|
||||||
let string = tokens.reduce("", { "\($0)/{\($1.text)}" })
|
let string = tokens.reduce("", { "\($0)/\($1.text)" })
|
||||||
pboard.setString(string, forType: NSPasteboard.PasteboardType.string)
|
pboard.setString(string, forType: NSPasteboard.PasteboardType.string)
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ class OutputPrefsViewController: NSViewController, NSTokenFieldDelegate {
|
|||||||
if let data = try? JSONEncoder().encode(tokens) {
|
if let data = try? JSONEncoder().encode(tokens) {
|
||||||
pboard.setData(data, forType: pasteboardType)
|
pboard.setData(data, forType: pasteboardType)
|
||||||
}
|
}
|
||||||
let string = tokens.reduce("", { "\($0)/{\($1.text)}" })
|
let string = tokens.reduce("", { "\($0)/\($1.text)" })
|
||||||
pboard.setString(string, forType: NSPasteboard.PasteboardType.string)
|
pboard.setString(string, forType: NSPasteboard.PasteboardType.string)
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user