Remove filter button from All Unread timeline.
This commit is contained in:
parent
7033879704
commit
00094858fa
|
@ -110,8 +110,7 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
|
||||||
filterButton.image = AppAssets.filterInactiveImage
|
filterButton.image = AppAssets.filterInactiveImage
|
||||||
coordinator.showAllArticles()
|
coordinator.showAllArticles()
|
||||||
case .alwaysRead:
|
case .alwaysRead:
|
||||||
filterButton.image = AppAssets.filterActiveImage
|
break
|
||||||
coordinator.refreshTimeline()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -517,9 +516,13 @@ private extension MasterTimelineViewController {
|
||||||
|
|
||||||
switch coordinator.articleReadFilterType {
|
switch coordinator.articleReadFilterType {
|
||||||
case .none:
|
case .none:
|
||||||
|
filterButton.isHidden = false
|
||||||
filterButton.image = AppAssets.filterInactiveImage
|
filterButton.image = AppAssets.filterInactiveImage
|
||||||
default:
|
case .read:
|
||||||
|
filterButton.isHidden = false
|
||||||
filterButton.image = AppAssets.filterActiveImage
|
filterButton.image = AppAssets.filterActiveImage
|
||||||
|
case .alwaysRead:
|
||||||
|
filterButton.isHidden = true
|
||||||
}
|
}
|
||||||
|
|
||||||
tableView.selectRow(at: nil, animated: false, scrollPosition: .top)
|
tableView.selectRow(at: nil, animated: false, scrollPosition: .top)
|
||||||
|
|
Loading…
Reference in New Issue