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() {
|
@objc func handleSidebarCommandTimelines() {
|
||||||
sidebar.select(item: .tab(.timelines), animated: false)
|
|
||||||
select(newItem: .tab(.timelines), oldItem: sidebar.selectedItem)
|
select(newItem: .tab(.timelines), oldItem: sidebar.selectedItem)
|
||||||
|
sidebar.select(item: .tab(.timelines), animated: false)
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func handleSidebarCommandNotifications() {
|
@objc func handleSidebarCommandNotifications() {
|
||||||
sidebar.select(item: .tab(.notifications), animated: false)
|
|
||||||
select(newItem: .tab(.notifications), oldItem: sidebar.selectedItem)
|
select(newItem: .tab(.notifications), oldItem: sidebar.selectedItem)
|
||||||
|
sidebar.select(item: .tab(.notifications), animated: false)
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func handleSidebarCommandExplore() {
|
@objc func handleSidebarCommandExplore() {
|
||||||
sidebar.select(item: .tab(.explore), animated: false)
|
|
||||||
select(newItem: .tab(.explore), oldItem: sidebar.selectedItem)
|
select(newItem: .tab(.explore), oldItem: sidebar.selectedItem)
|
||||||
|
sidebar.select(item: .tab(.explore), animated: false)
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func handleSidebarCommandBookmarks() {
|
@objc func handleSidebarCommandBookmarks() {
|
||||||
sidebar.select(item: .bookmarks, animated: false)
|
|
||||||
select(newItem: .bookmarks, oldItem: sidebar.selectedItem)
|
select(newItem: .bookmarks, oldItem: sidebar.selectedItem)
|
||||||
|
sidebar.select(item: .bookmarks, animated: false)
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func handleSidebarCommandMyProfile() {
|
@objc func handleSidebarCommandMyProfile() {
|
||||||
sidebar.select(item: .tab(.myProfile), animated: false)
|
|
||||||
select(newItem: .tab(.myProfile), oldItem: sidebar.selectedItem)
|
select(newItem: .tab(.myProfile), oldItem: sidebar.selectedItem)
|
||||||
|
sidebar.select(item: .tab(.myProfile), animated: false)
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc private func sidebarTapped() {
|
@objc private func sidebarTapped() {
|
||||||
|
|
Loading…
Reference in New Issue