That is, if “show only unread in sidebar” == true then
-
show only folders containing at least one unread item, hide the others
-
in open folders, show only the feeds with at least one unread item
This also plays nicely with hiding counts in the sidebar, because the only count needed is “some” or “none”.