diff --git a/crates/title_bar/src/application_menu.rs b/crates/title_bar/src/application_menu.rs index 9feba92b59..1cb8e34ce1 100644 --- a/crates/title_bar/src/application_menu.rs +++ b/crates/title_bar/src/application_menu.rs @@ -168,10 +168,12 @@ impl ApplicationMenu { }) } + #[cfg(not(target_os = "macos"))] pub fn open_menu(&mut self, action: &OpenApplicationMenu, _cx: &mut ViewContext) { self.pending_menu_open = Some(action.0.clone()); } + #[cfg(not(target_os = "macos"))] pub fn navigate_menus_in_direction( &mut self, action: &NavigateApplicationMenuInDirection, diff --git a/crates/title_bar/src/title_bar.rs b/crates/title_bar/src/title_bar.rs index 4663bc800f..23449ddeb0 100644 --- a/crates/title_bar/src/title_bar.rs +++ b/crates/title_bar/src/title_bar.rs @@ -6,9 +6,11 @@ mod window_controls; #[cfg(feature = "stories")] mod stories; -use crate::application_menu::{ - ApplicationMenu, NavigateApplicationMenuInDirection, OpenApplicationMenu, -}; +use crate::application_menu::ApplicationMenu; + +#[cfg(not(target_os = "macos"))] +use crate::application_menu::{NavigateApplicationMenuInDirection, OpenApplicationMenu}; + use crate::platforms::{platform_linux, platform_mac, platform_windows}; use auto_update::AutoUpdateStatus; use call::ActiveCall;