Fix switching sidebar sections with keyboard shortcuts not saving old section's navigation stack
This commit is contained in:
parent
cd0d8fffcb
commit
09c6a87e19
|
@ -188,28 +188,28 @@ class MainSplitViewController: UISplitViewController {
|
|||
}
|
||||
|
||||
@objc func handleSidebarCommandTimelines() {
|
||||
sidebar.select(item: .tab(.timelines), animated: false)
|
||||
select(newItem: .tab(.timelines), oldItem: sidebar.selectedItem)
|
||||
sidebar.select(item: .tab(.timelines), animated: false)
|
||||
}
|
||||
|
||||
@objc func handleSidebarCommandNotifications() {
|
||||
sidebar.select(item: .tab(.notifications), animated: false)
|
||||
select(newItem: .tab(.notifications), oldItem: sidebar.selectedItem)
|
||||
sidebar.select(item: .tab(.notifications), animated: false)
|
||||
}
|
||||
|
||||
@objc func handleSidebarCommandExplore() {
|
||||
sidebar.select(item: .tab(.explore), animated: false)
|
||||
select(newItem: .tab(.explore), oldItem: sidebar.selectedItem)
|
||||
sidebar.select(item: .tab(.explore), animated: false)
|
||||
}
|
||||
|
||||
@objc func handleSidebarCommandBookmarks() {
|
||||
sidebar.select(item: .bookmarks, animated: false)
|
||||
select(newItem: .bookmarks, oldItem: sidebar.selectedItem)
|
||||
sidebar.select(item: .bookmarks, animated: false)
|
||||
}
|
||||
|
||||
@objc func handleSidebarCommandMyProfile() {
|
||||
sidebar.select(item: .tab(.myProfile), animated: false)
|
||||
select(newItem: .tab(.myProfile), oldItem: sidebar.selectedItem)
|
||||
sidebar.select(item: .tab(.myProfile), animated: false)
|
||||
}
|
||||
|
||||
@objc private func sidebarTapped() {
|
||||
|
|
Loading…
Reference in New Issue