[macOS] Not showing top-level menu label [druid] - TagMerge

[macOS] Not showing top-level menu label [druid]

zwlxtAsked 5 months ago

image

Revision: c6040dac18aeafbd6927314e01fd07a19eb7ac1b (Currently latest)

Reproduce:

#[derive(Data, Clone, Copy)]
struct State;

fn make_menu(_: Option<WindowId>, _: &State, _: &Env) -> Menu<State> {
    druid::platform_menus::mac::menu_bar()
}

fn main() {
    let window = WindowDesc::new(Label::new("test")).menu(make_menu);

    AppLauncher::with_window(window).launch(State).unwrap()
}

Source: link

Recent Issues

    Programming Languages