mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 08:17:16 +00:00
Check that the split view controller is collapsed before deselecting the timeline cell.
This commit is contained in:
1 parent
6a714df299
commit
0f62ef39cc
1 file changed
+5
-2
@@ -231,12 +231,15 @@ final class MainTimelineModernViewController: UIViewController, UndoableCommandR
|
||||
guard traitCollection.userInterfaceIdiom == .phone else {
|
||||
return
|
||||
}
|
||||
guard let coordinator, coordinator.isRootSplitCollapsed else {
|
||||
return
|
||||
}
|
||||
|
||||
if coordinator?.currentArticle != nil {
|
||||
if coordinator.currentArticle != nil {
|
||||
if let indexPath = collectionView?.indexPathsForSelectedItems?.first {
|
||||
collectionView?.deselectItem(at: indexPath, animated: true)
|
||||
}
|
||||
coordinator?.selectArticle(nil)
|
||||
coordinator.selectArticle(nil)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user