Skip to content

Commit

Permalink
Unbreak wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Oct 9, 2024
1 parent f865da2 commit 343bad3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/viewer/re_viewer/src/ui/rerun_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl App {

ui.menu_button("Options", |ui| {
ui.style_mut().wrap_mode = Some(egui::TextWrapMode::Extend);
options_menu_ui(ui, frame, &mut self.state.app_options);
options_menu_ui(&self.command_sender, ui, frame, &mut self.state.app_options);
});

#[cfg(debug_assertions)]
Expand Down Expand Up @@ -295,6 +295,7 @@ fn render_state_ui(ui: &mut egui::Ui, render_state: &egui_wgpu::RenderState) {
}

fn options_menu_ui(
_command_sender: &re_viewer_context::CommandSender,
ui: &mut egui::Ui,
frame: &eframe::Frame,
app_options: &mut re_viewer_context::AppOptions,
Expand Down Expand Up @@ -367,9 +368,9 @@ fn options_menu_ui(
{
ui.add_space(SPACING);
if _backend == wgpu::Backend::BrowserWebGpu {
UICommand::RestartWithWebGl.menu_button_ui(ui, command_sender);
UICommand::RestartWithWebGl.menu_button_ui(ui, _command_sender);
} else {
UICommand::RestartWithWebGpu.menu_button_ui(ui, command_sender);
UICommand::RestartWithWebGpu.menu_button_ui(ui, _command_sender);
}
}
}
Expand Down

0 comments on commit 343bad3

Please sign in to comment.