Skip to content

Commit

Permalink
Open all links in a new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Dec 19, 2023
1 parent fe6400e commit e9997cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/re_viewer/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,13 @@ impl eframe::App for App {
}
});

egui_ctx.output_mut(|o| {
// Open all links in a new tab
if let Some(open_url) = &mut o.open_url {
open_url.new_tab = true;
}
});

// Frame time measurer - must be last
self.frame_time_history.add(
egui_ctx.input(|i| i.time),
Expand Down

0 comments on commit e9997cd

Please sign in to comment.