|
|
@ -156,24 +156,24 @@ impl ContextMenus { |
|
|
|
} |
|
|
|
|
|
|
|
fn nested_menus(ui: &mut egui::Ui) { |
|
|
|
if ui.button("Open...").clicked() { |
|
|
|
if ui.button("Open…").clicked() { |
|
|
|
ui.close_menu(); |
|
|
|
} |
|
|
|
ui.menu_button("SubMenu", |ui| { |
|
|
|
ui.menu_button("SubMenu", |ui| { |
|
|
|
if ui.button("Open...").clicked() { |
|
|
|
if ui.button("Open…").clicked() { |
|
|
|
ui.close_menu(); |
|
|
|
} |
|
|
|
let _ = ui.button("Item"); |
|
|
|
}); |
|
|
|
ui.menu_button("SubMenu", |ui| { |
|
|
|
if ui.button("Open...").clicked() { |
|
|
|
if ui.button("Open…").clicked() { |
|
|
|
ui.close_menu(); |
|
|
|
} |
|
|
|
let _ = ui.button("Item"); |
|
|
|
}); |
|
|
|
let _ = ui.button("Item"); |
|
|
|
if ui.button("Open...").clicked() { |
|
|
|
if ui.button("Open…").clicked() { |
|
|
|
ui.close_menu(); |
|
|
|
} |
|
|
|
}); |
|
|
@ -182,7 +182,7 @@ impl ContextMenus { |
|
|
|
let _ = ui.button("Item2"); |
|
|
|
let _ = ui.button("Item3"); |
|
|
|
let _ = ui.button("Item4"); |
|
|
|
if ui.button("Open...").clicked() { |
|
|
|
if ui.button("Open…").clicked() { |
|
|
|
ui.close_menu(); |
|
|
|
} |
|
|
|
}); |
|
|
|