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

[example_web] Fix link to own source code

This commit is contained in:
Emil Ernerfeldt
2020-11-18 01:20:35 +01:00
parent 7249fc45d0
commit 9c8a3a994f
2 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@@ -45,8 +45,10 @@ impl egui::app::App for ExampleApp {
trigger_fetch = true;
}
if ui.button("Source code for this file").clicked {
self.url =
format!("https://raw.githubusercontent.com/emilk/egui/{}", file!());
self.url = format!(
"https://raw.githubusercontent.com/emilk/egui/master/{}",
file!()
);
trigger_fetch = true;
}
});