Skip to content

Commit

Permalink
frame isn't used in wasm build
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Jun 9, 2023
1 parent 668d726 commit 7e6271a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/re_viewer/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ impl App {
cmd: UICommand,
blueprint: &mut Blueprint,
store_hub: &mut StoreHub,
frame: &mut eframe::Frame,
_frame: &mut eframe::Frame,
egui_ctx: &egui::Context,
) {
let is_narrow_screen = egui_ctx.screen_rect().width() < 600.0; // responsive ui for mobiles etc
Expand All @@ -313,7 +313,7 @@ impl App {
}
#[cfg(not(target_arch = "wasm32"))]
UICommand::Quit => {
frame.close();
_frame.close();
}

UICommand::ResetViewer => {
Expand Down Expand Up @@ -350,7 +350,7 @@ impl App {

#[cfg(not(target_arch = "wasm32"))]
UICommand::ToggleFullscreen => {
frame.set_fullscreen(!frame.info().window_info.fullscreen);
_frame.set_fullscreen(!_frame.info().window_info.fullscreen);
}
#[cfg(not(target_arch = "wasm32"))]
UICommand::ZoomIn => {
Expand Down

0 comments on commit 7e6271a

Please sign in to comment.