From 08bdbd3cb739cf84cd75e7659c18f355cdd8c00b Mon Sep 17 00:00:00 2001 From: Alexandre Rousseau Date: Tue, 10 Nov 2020 16:56:35 -0500 Subject: [PATCH] Rename menues to menus (#41) Co-authored-by: Alexandre Rousseau --- egui/src/layout.rs | 2 +- egui/src/memory.rs | 2 +- egui/src/menu.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/egui/src/layout.rs b/egui/src/layout.rs index 5fc8ef3bb6a..f816a8cab0c 100644 --- a/egui/src/layout.rs +++ b/egui/src/layout.rs @@ -73,7 +73,7 @@ impl Layout { } /// Full-width layout. - /// Nice for menues etc where each button is full width. + /// Nice for menus etc where each button is full width. pub fn justified(dir: Direction) -> Self { Self { dir, diff --git a/egui/src/memory.rs b/egui/src/memory.rs index d1a21cc5bb0..4d811f51281 100644 --- a/egui/src/memory.rs +++ b/egui/src/memory.rs @@ -58,7 +58,7 @@ pub struct Memory { /// Useful for debugging, benchmarking etc. pub all_collpasing_are_open: bool, /// Useful for debugging, benchmarking etc. - pub all_menues_are_open: bool, + pub all_menus_are_open: bool, /// Useful for debugging, benchmarking etc. pub all_windows_are_open: bool, } diff --git a/egui/src/menu.rs b/egui/src/menu.rs index 1775a52854a..11be4ddfa6b 100644 --- a/egui/src/menu.rs +++ b/egui/src/menu.rs @@ -94,7 +94,7 @@ fn menu_impl<'c>( bar_state.open_menu = Some(menu_id); } - if bar_state.open_menu == Some(menu_id) || ui.memory().all_menues_are_open { + if bar_state.open_menu == Some(menu_id) || ui.memory().all_menus_are_open { let area = Area::new(menu_id) .order(Order::Foreground) .fixed_pos(button_response.rect.left_bottom());