MCPcopy Create free account
hub / github.com/altic-dev/FluidVoice / handleMenuBarNavigation

Method handleMenuBarNavigation

Sources/Fluid/ContentView.swift:952–966  ·  view source on GitHub ↗
(_ destination: MenuBarNavigationDestination?)

Source from the content-addressed store, hash-verified

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 }

Callers 2

ContentViewStruct · 0.95
handleContentAppearMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected