[example_web] Fix link to own source code
This commit is contained in:
parent
7249fc45d0
commit
9c8a3a994f
2 changed files with 4 additions and 2 deletions
Binary file not shown.
|
@ -45,8 +45,10 @@ impl egui::app::App for ExampleApp {
|
||||||
trigger_fetch = true;
|
trigger_fetch = true;
|
||||||
}
|
}
|
||||||
if ui.button("Source code for this file").clicked {
|
if ui.button("Source code for this file").clicked {
|
||||||
self.url =
|
self.url = format!(
|
||||||
format!("https://raw.githubusercontent.com/emilk/egui/{}", file!());
|
"https://raw.githubusercontent.com/emilk/egui/master/{}",
|
||||||
|
file!()
|
||||||
|
);
|
||||||
trigger_fetch = true;
|
trigger_fetch = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue