Delete no-longer-needed (due to OS changes) UTS46 URL handling.

This commit is contained in:
Brent Simmons
2024-11-09 10:23:13 -08:00
parent 2b76968391
commit 05347129bf
14 changed files with 17 additions and 1107 deletions

View File

@@ -91,7 +91,7 @@ final class AddFeedWindowController : NSWindowController {
cancelSheet()
return;
}
guard let url = URL(unicodeString: normalizedURLString) else {
guard let url = URL(string: normalizedURLString) else {
cancelSheet()
return
}

View File

@@ -216,16 +216,16 @@ private extension SidebarViewController {
}
if let homePageURL = feed.homePageURL, let _ = URL(string: homePageURL) {
let item = menuItem(NSLocalizedString("Open Home Page", comment: "Command"), #selector(openHomePageFromContextualMenu(_:)), homePageURL.decodedURLString ?? homePageURL)
let item = menuItem(NSLocalizedString("Open Home Page", comment: "Command"), #selector(openHomePageFromContextualMenu(_:)), homePageURL)
menu.addItem(item)
menu.addItem(NSMenuItem.separator())
}
let copyFeedURLItem = menuItem(NSLocalizedString("Copy Feed URL", comment: "Command"), #selector(copyURLFromContextualMenu(_:)), feed.url.decodedURLString ?? feed.url)
let copyFeedURLItem = menuItem(NSLocalizedString("Copy Feed URL", comment: "Command"), #selector(copyURLFromContextualMenu(_:)), feed.url)
menu.addItem(copyFeedURLItem)
if let homePageURL = feed.homePageURL {
let item = menuItem(NSLocalizedString("Copy Home Page URL", comment: "Command"), #selector(copyURLFromContextualMenu(_:)), homePageURL.decodedURLString ?? homePageURL)
let item = menuItem(NSLocalizedString("Copy Home Page URL", comment: "Command"), #selector(copyURLFromContextualMenu(_:)), homePageURL)
menu.addItem(item)
}
menu.addItem(NSMenuItem.separator())