move toggle side bar to RootSplitViewController

This commit is contained in:
Rizwan Mohamed Ibrahim 2020-05-13 21:57:02 +05:30
parent a9aefd252e
commit 32c8c038ee
No known key found for this signature in database
GPG Key ID: D5BEE468D448BCC5
2 changed files with 4 additions and 5 deletions

View File

@ -157,10 +157,6 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
coordinator.showFeedInspector() coordinator.showFeedInspector()
} }
@objc func toggleSidebar(_ sender: Any?) {
coordinator.toggleSidebar()
}
// MARK: API // MARK: API
func restoreSelectionIfNecessary(adjustScroll: Bool) { func restoreSelectionIfNecessary(adjustScroll: Bool) {

View File

@ -133,5 +133,8 @@ class RootSplitViewController: UISplitViewController {
@objc func toggleStarred(_ sender: Any?) { @objc func toggleStarred(_ sender: Any?) {
coordinator.toggleStarredForCurrentArticle() coordinator.toggleStarredForCurrentArticle()
} }
@objc func toggleSidebar(_ sender: Any?) {
coordinator.toggleSidebar()
}
} }