From cb7ef6faeb5ae152b8b2cd06e62bbdf3129dd2b3 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 8 Mar 2021 20:25:43 +0100 Subject: [PATCH] bug fix: open links in same tab by default --- egui/src/data/output.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egui/src/data/output.rs b/egui/src/data/output.rs index a12324fa..c6f1a8cd 100644 --- a/egui/src/data/output.rs +++ b/egui/src/data/output.rs @@ -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) { - self.open_url = Some(OpenUrl::new_tab(url)) + self.open_url = Some(OpenUrl::same_tab(url)) } }