(_ destination: MenuBarNavigationDestination?)
| 950 | } |
| 951 | |
| 952 | @MainActor |
| 953 | private func handleMenuBarNavigation(_ destination: MenuBarNavigationDestination?) { |
| 954 | guard let destination else { return } |
| 955 | guard !self.settings.shouldShowOnboarding else { return } |
| 956 | |
| 957 | switch destination { |
| 958 | case .customDictionary: |
| 959 | self.selectedSidebarItem = .customDictionary |
| 960 | case .microphoneSettings: |
| 961 | self.selectedSidebarItem = .preferences |
| 962 | self.microphoneSettingsScrollRequest &+= 1 |
| 963 | case .preferences: |
| 964 | self.selectedSidebarItem = .preferences |
| 965 | } |
| 966 | } |
| 967 | |
| 968 | private func handlePendingAppNavigation() { |
| 969 | guard let destination = AppNavigationRouter.shared.consumePendingDestination() else { return } |
no outgoing calls
no test coverage detected