Change parameter label

This commit is contained in:
Nate Weaver
2022-10-13 13:21:18 -05:00
parent 016a2948c4
commit 35e59dd6dd
3 changed files with 3 additions and 3 deletions

View File

@@ -330,7 +330,7 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
@IBAction func copyArticleURL(_ sender: Any?) {
if let currentLinks {
URLPasteboardWriter.write(urlStrings: currentLinks, alertingInWindow: window)
URLPasteboardWriter.write(urlStrings: currentLinks, alertingIn: window)
}
}

View File

@@ -101,7 +101,7 @@ extension TimelineViewController {
return
}
URLPasteboardWriter.write(urlStrings: urlStrings, alertingInWindow: self.view.window)
URLPasteboardWriter.write(urlStrings: urlStrings, alertingIn: self.view.window)
}
@objc func performShareServiceFromContextualMenu(_ sender: Any?) {

View File

@@ -15,7 +15,7 @@ extension URLPasteboardWriter {
/// - urlStrings: The URL strings to copy.
/// - pasteboard: The pastebaord to copy to.
/// - window: The window to use as a sheet parent for the alert. If `nil`, will run the alert modally.
static func write(urlStrings: [String?], to pasteboard: NSPasteboard = .general, alertingInWindow window: NSWindow?) {
static func write(urlStrings: [String?], to pasteboard: NSPasteboard = .general, alertingIn window: NSWindow?) {
URLPasteboardWriter.write(urlStrings: urlStrings.compactMap { $0 }, to: pasteboard)
if urlStrings.contains(nil), !AppDefaults.shared.hasSeenNotAllArticlesHaveURLsAlert {