1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 15:13:12 -04:00

Update example web app

This commit is contained in:
Emil Ernerfeldt
2020-11-18 01:08:45 +01:00
parent 86cfd0dcd3
commit bafbe04fb3
3 changed files with 14 additions and 8 deletions

View File

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