mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Sorted articles by publishing date before sharing them. Issue #367 Also fixed issue where mail subject wasn't being set when sharing via the context share menu.
This commit is contained in:
@@ -363,7 +363,8 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
|
||||
return
|
||||
}
|
||||
|
||||
let items = selectedArticles.map { ArticlePasteboardWriter(article: $0) }
|
||||
let sortedArticles = selectedArticles.sortedByDate(.orderedAscending)
|
||||
let items = sortedArticles.map { ArticlePasteboardWriter(article: $0) }
|
||||
let sharingServicePicker = NSSharingServicePicker(items: items)
|
||||
sharingServicePicker.delegate = sharingServicePickerDelegate
|
||||
sharingServicePicker.show(relativeTo: view.bounds, of: view, preferredEdge: .minY)
|
||||
|
||||
Reference in New Issue
Block a user