mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Check if the split is collapsed to see if we are maintaining the selection
This commit is contained in:
@@ -156,7 +156,7 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
|
||||
}
|
||||
|
||||
func updateArticleSelection(animate: Bool) {
|
||||
guard traitCollection.userInterfaceIdiom == .pad && !coordinator.articles.isEmpty else {
|
||||
guard !coordinator.isRootSplitCollapsed && !coordinator.articles.isEmpty else {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -555,7 +555,7 @@ private extension MasterTimelineViewController {
|
||||
}
|
||||
|
||||
func restoreSelectionIfNecessary() {
|
||||
guard traitCollection.userInterfaceIdiom == .pad else {
|
||||
guard !coordinator.isRootSplitCollapsed else {
|
||||
return
|
||||
}
|
||||
if let articleID = coordinator.currentArticle?.articleID, let index = coordinator.indexForArticleID(articleID) {
|
||||
|
||||
Reference in New Issue
Block a user