Skip to content

Commit

Permalink
fix: Fix losing focus on main menu when pressing right/left (#1007)
Browse files Browse the repository at this point in the history
The version string widget was editable, and was stealing focus from menu
nav.
  • Loading branch information
MaxCWhitehead authored Jul 12, 2024
1 parent 4c9c8a6 commit faa5266
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ui/main_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,8 @@ fn main_menu_system(world: &World) {
ui.with_layout(egui::Layout::right_to_left(egui::Align::Max), |ui| {
ui.add_space(5.0);

ui.add(
egui::TextEdit::singleline(&mut VERSION_STRING.as_str())
.text_color(egui::Color32::WHITE)
.horizontal_align(egui::Align::Max),
ui.label(
egui::RichText::new(VERSION_STRING.as_str()).color(egui::Color32::WHITE),
);
})
});
Expand Down

0 comments on commit faa5266

Please sign in to comment.