#[cfg(target_os = "macos")]
pub mod macos;
#[cfg(target_os = "macos")]
pub fn setup<M: Send + 'static>() -> iced::Task<M> {
iced::window::oldest()
.and_then(|id| {
iced::window::run(id, |_window| {
macos::install_window_menu();
})
})
.discard()
}
#[cfg(not(target_os = "macos"))]
pub fn setup<M: Send + 'static>() -> iced::Task<M> {
iced::Task::none()
}
#[cfg(test)]
mod tests {
#[test]
fn setup_builds_a_task_for_any_message_type() {
let _: iced::Task<u8> = super::setup();
let _: iced::Task<String> = super::setup();
}
}