mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
[example_web] Fix link to own source code
This commit is contained in:
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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user