mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-04 03:08:43 +00:00
Fix state restoration bug when showing article not present in timeline — this way its feed icon can be found.
This commit is contained in:
1 parent
546c05a628
commit
16c66513c1
1 file changed
+5
@@ -717,6 +717,11 @@ final class SceneCoordinator: NSObject, UndoableCommandRunner {
|
||||
}
|
||||
|
||||
func articleFor(_ articleID: String) -> Article? {
|
||||
// Check if it's the currently displayed article
|
||||
if let currentArticle, currentArticle.articleID == articleID {
|
||||
return currentArticle
|
||||
}
|
||||
// Otherwise look in the timeline
|
||||
return idToArticleDictionary[articleID]
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user