fix clippy unused for macos

This commit is contained in:
tims 2024-12-16 15:46:13 +05:30
parent 1b9259619f
commit c71ce50bcc
2 changed files with 7 additions and 3 deletions

View file

@ -168,10 +168,12 @@ impl ApplicationMenu {
})
}
#[cfg(not(target_os = "macos"))]
pub fn open_menu(&mut self, action: &OpenApplicationMenu, _cx: &mut ViewContext<Self>) {
self.pending_menu_open = Some(action.0.clone());
}
#[cfg(not(target_os = "macos"))]
pub fn navigate_menus_in_direction(
&mut self,
action: &NavigateApplicationMenuInDirection,

View file

@ -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;