Fix "Copy URL" for pasting into Terminal, closes #2853

This commit is contained in:
Wojtek Mach 2024-11-08 16:42:40 +01:00
parent cb047455a6
commit 6021ddf39e

View file

@ -128,7 +128,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
func copyURL() {
let pasteboard = NSPasteboard.general
pasteboard.clearContents()
pasteboard.setData(url!.data(using: .utf8), forType: NSPasteboard.PasteboardType.URL)
pasteboard.setString(url!, forType: .URL)
pasteboard.setString(url!, forType: .string)
}
@objc