dont show the game settings in main menu

This commit is contained in:
bgkillas 2024-11-17 19:48:57 -05:00
parent 110ec2b2d8
commit d4fcb68e94

View file

@ -831,7 +831,7 @@ impl App {
filled_group(ui, |ui| { filled_group(ui, |ui| {
ui.set_min_size(ui.available_size()); ui.set_min_size(ui.available_size());
ScrollArea::both().auto_shrink(false).show(ui, |ui| { ScrollArea::both().auto_shrink(false).show(ui, |ui| {
self.show_all_settings(ui, true); self.show_local_settings(ui);
}); });
}); });
}, },
@ -954,18 +954,6 @@ impl App {
}); });
} }
fn show_all_settings(&mut self, ui: &mut Ui, show_local: bool) {
self.show_game_settings(ui);
if show_local {
self.show_local_settings(ui);
}
}
fn show_game_settings(&mut self, ui: &mut Ui) {
heading_with_underline(ui, tr("connect_settings"));
self.app_saved_state.game_settings.show_editor(ui);
}
fn show_local_settings(&mut self, ui: &mut Ui) { fn show_local_settings(&mut self, ui: &mut Ui) {
heading_with_underline(ui, tr("connect_settings_local")); heading_with_underline(ui, tr("connect_settings_local"));
ui.checkbox( ui.checkbox(