Skip to content

Commit

Permalink
web warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Jan 30, 2024
1 parent c3841c2 commit f3f871c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/re_space_view_spatial/src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,13 +393,13 @@ pub fn outline_config(gui_ctx: &egui::Context) -> OutlineConfig {

pub fn screenshot_context_menu(
_ctx: &ViewerContext<'_>,
response: &egui::Response,
_response: &egui::Response,
) -> Option<ScreenshotMode> {
#[cfg(not(target_arch = "wasm32"))]
{
if _ctx.app_options.experimental_space_view_screenshots {
let mut take_screenshot = None;
response.context_menu(|ui| {
_response.context_menu(|ui| {
ui.style_mut().wrap = Some(false);
if ui.button("Save screenshot to disk").clicked() {
take_screenshot = Some(ScreenshotMode::SaveAndCopyToClipboard);
Expand Down

0 comments on commit f3f871c

Please sign in to comment.