mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 16:54:12 +00:00
Check if split view is collapsed — fix selection bug in Pro Max devices. Fixes #5043.
This commit is contained in:
1 parent
6665d01fe7
commit
9a8b2a0165
1 file changed
+5
@@ -109,6 +109,11 @@ final class MainFeedCollectionViewController: UICollectionViewController, Undoab
|
||||
guard traitCollection.userInterfaceIdiom == .phone else {
|
||||
return
|
||||
}
|
||||
// Pro Max may have split view in landscape — make sure it's collapsed.
|
||||
// <https://github.com/Ranchero-Software/NetNewsWire/issues/5043>
|
||||
guard coordinator.isRootSplitCollapsed else {
|
||||
return
|
||||
}
|
||||
|
||||
if collectionView.indexPathsForSelectedItems != nil {
|
||||
coordinator.selectSidebarItem(indexPath: nil, animations: [.select])
|
||||
|
||||
Reference in new issue
Block a user