mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-03 02:42:54 +00:00
Skip expanded folders when going to the next unread, matching iOS. Fixes #2946.
This commit is contained in:
1 parent
bbd158f799
commit
be1965c87c
1 file changed
+2
-4
@@ -753,11 +753,9 @@ private extension SidebarViewController {
|
||||
}
|
||||
|
||||
func shouldSkipRow(_ row: Int) -> Bool {
|
||||
let skipExpandedFolders = UserDefaults.standard.bool(forKey: "JalkutRespectFolderExpansionOnNextUnread")
|
||||
|
||||
// Skip group items, because they should never be selected.
|
||||
// Skip expanded folders only if Jalkut's pref is enabled.
|
||||
if rowIsGroupItem(row) || (skipExpandedFolders && rowIsExpandedFolder(row)) {
|
||||
// Skip expanded folders — go to the feeds inside instead.
|
||||
if rowIsGroupItem(row) || rowIsExpandedFolder(row) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user