mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-02 18:32:55 +00:00
Merge (manually) state restoration changes from 6.2.1.
This commit is contained in:
1 parent
4b1ee96998
commit
6e015c1aba
3 files changed
+153
-7
No files matched your search
@@ -747,13 +747,8 @@ private extension MainTimelineViewController {
|
||||
}
|
||||
|
||||
func resetUI(resetScroll: Bool) {
|
||||
switch timelineDefaultReadFilterType {
|
||||
case .none, .read:
|
||||
navigationItem.rightBarButtonItem = filterButton
|
||||
navigationItem.rightBarButtonItem?.isEnabled = true
|
||||
case .alwaysRead:
|
||||
navigationItem.rightBarButtonItem = nil
|
||||
}
|
||||
let shouldShowFilterButton = coordinator?.shouldShowFilterButton() ?? false
|
||||
navigationItem.rightBarButtonItem = shouldShowFilterButton ? filterButton : nil
|
||||
|
||||
if isReadArticlesFiltered {
|
||||
filterButton.style = .prominent
|
||||
|
||||
Reference in new issue
Block a user