1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

bug fix: open links in same tab by default

This commit is contained in:
Emil Ernerfeldt
2021-03-08 20:25:43 +01:00
parent ea248d66b5
commit cb7ef6faeb

View File

@@ -29,7 +29,7 @@ impl Output {
/// Open the given url in a web browser.
/// If egui is running in a browser, the same tab will be reused.
pub fn open_url(&mut self, url: impl Into<String>) {
self.open_url = Some(OpenUrl::new_tab(url))
self.open_url = Some(OpenUrl::same_tab(url))
}
}