mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Share button now supports "EagleFiler Import" and "Add to Reading List".
List .URL before .string in the pasteboard types because otherwise the system will not propose sharing services that receive URLs but not text.
This commit is contained in:
@@ -31,12 +31,12 @@ import Data
|
||||
|
||||
func writableTypes(for pasteboard: NSPasteboard) -> [NSPasteboard.PasteboardType] {
|
||||
|
||||
var types = [ArticlePasteboardWriter.articleUTIType, .string]
|
||||
var types = [ArticlePasteboardWriter.articleUTIType]
|
||||
|
||||
if let link = article.preferredLink, let _ = URL(string: link) {
|
||||
types += [.URL]
|
||||
}
|
||||
types += [.html, ArticlePasteboardWriter.articleUTIInternalType]
|
||||
types += [.string, .html, ArticlePasteboardWriter.articleUTIInternalType]
|
||||
|
||||
return types
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user