mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 14:44:12 +00:00
Different approach to cfg
This commit is contained in:
parent
b90c7ffcac
commit
ac64f40842
1 changed files with 3 additions and 1 deletions
|
@ -4,9 +4,11 @@ use tao::window::Window;
|
|||
|
||||
#[allow(unused)]
|
||||
pub fn build_menu(window: &Window, default_menu_bar: bool) -> Option<Box<dyn Any>> {
|
||||
#[allow(unused_mut)]
|
||||
let mut menu = None;
|
||||
|
||||
if cfg!(not(any(target_os = "ios", target_os = "android"))) {
|
||||
#[cfg(not(any(target_os = "ios", target_os = "android")))]
|
||||
{
|
||||
menu = Some(Box::new(impl_::build_menu_bar(default_menu_bar, window)) as Box<dyn Any>);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue