forked from shadowfacts/Tusker
parent
c60aa3e3f3
commit
575166f5b4
|
@ -180,26 +180,41 @@ class MainSplitViewController: UISplitViewController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func handleSidebarCommandTimelines() {
|
@objc func handleSidebarCommandTimelines() {
|
||||||
|
if let previous = sidebar.selectedItem {
|
||||||
|
navigationStacks[previous] = secondaryNavController.viewControllers
|
||||||
|
}
|
||||||
sidebar.select(item: .tab(.timelines), animated: false)
|
sidebar.select(item: .tab(.timelines), animated: false)
|
||||||
select(item: .tab(.timelines))
|
select(item: .tab(.timelines))
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func handleSidebarCommandNotifications() {
|
@objc func handleSidebarCommandNotifications() {
|
||||||
|
if let previous = sidebar.selectedItem {
|
||||||
|
navigationStacks[previous] = secondaryNavController.viewControllers
|
||||||
|
}
|
||||||
sidebar.select(item: .tab(.notifications), animated: false)
|
sidebar.select(item: .tab(.notifications), animated: false)
|
||||||
select(item: .tab(.notifications))
|
select(item: .tab(.notifications))
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func handleSidebarCommandExplore() {
|
@objc func handleSidebarCommandExplore() {
|
||||||
|
if let previous = sidebar.selectedItem {
|
||||||
|
navigationStacks[previous] = secondaryNavController.viewControllers
|
||||||
|
}
|
||||||
sidebar.select(item: .tab(.explore), animated: false)
|
sidebar.select(item: .tab(.explore), animated: false)
|
||||||
select(item: .tab(.explore))
|
select(item: .tab(.explore))
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func handleSidebarCommandBookmarks() {
|
@objc func handleSidebarCommandBookmarks() {
|
||||||
|
if let previous = sidebar.selectedItem {
|
||||||
|
navigationStacks[previous] = secondaryNavController.viewControllers
|
||||||
|
}
|
||||||
sidebar.select(item: .bookmarks, animated: false)
|
sidebar.select(item: .bookmarks, animated: false)
|
||||||
select(item: .bookmarks)
|
select(item: .bookmarks)
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func handleSidebarCommandMyProfile() {
|
@objc func handleSidebarCommandMyProfile() {
|
||||||
|
if let previous = sidebar.selectedItem {
|
||||||
|
navigationStacks[previous] = secondaryNavController.viewControllers
|
||||||
|
}
|
||||||
sidebar.select(item: .tab(.myProfile), animated: false)
|
sidebar.select(item: .tab(.myProfile), animated: false)
|
||||||
select(item: .tab(.myProfile))
|
select(item: .tab(.myProfile))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue