From 09c6a87e1994d550731f6bff48a7f6b6cf85859f Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 8 Jun 2024 11:30:16 -0700 Subject: [PATCH] Fix switching sidebar sections with keyboard shortcuts not saving old section's navigation stack --- Tusker/Screens/Main/MainSplitViewController.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tusker/Screens/Main/MainSplitViewController.swift b/Tusker/Screens/Main/MainSplitViewController.swift index f55e2dec54..f7975ca76a 100644 --- a/Tusker/Screens/Main/MainSplitViewController.swift +++ b/Tusker/Screens/Main/MainSplitViewController.swift @@ -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() {