1
0
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:
Stanisław Jelnicki
2022-04-15 07:39:08 +02:00
committed by GitHub
parent b738418243
commit 2745699bd6
4 changed files with 14 additions and 3 deletions

View File

@@ -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