Skip to content

Commit

Permalink
Rename menues to menus (#41)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandre Rousseau <[email protected]>
  • Loading branch information
gamecubate and Alexandre Rousseau authored Nov 10, 2020
1 parent d2b5730 commit 08bdbd3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion egui/src/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion egui/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
2 changes: 1 addition & 1 deletion egui/src/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 08bdbd3

Please sign in to comment.