mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Add Ui::spinner shortcut method (#1494)
This commit is contained in:
committed by
GitHub
parent
b738418243
commit
2745699bd6
@@ -38,7 +38,7 @@ impl eframe::App for MyApp {
|
||||
|
||||
egui::CentralPanel::default().show(ctx, |ui| match promise.ready() {
|
||||
None => {
|
||||
ui.add(egui::Spinner::new()); // still loading
|
||||
ui.spinner(); // still loading
|
||||
}
|
||||
Some(Err(err)) => {
|
||||
ui.colored_label(egui::Color32::RED, err); // something went wrong
|
||||
|
||||
Reference in New Issue
Block a user