Listen for a callback that says when avatar is available.

This commit is contained in:
IQuant 2024-10-27 15:43:01 +03:00
parent 40076e33d0
commit 6e30d5d0eb
2 changed files with 25 additions and 7 deletions

View file

@ -1208,7 +1208,7 @@ fn show_player_list_steam(
let username = steam.get_user_name(peer.into());
let avatar = steam.get_avatar(ctx, peer.into());
ui.group(|ui| {
if let Some(avatar) = avatar {
if let Some(ref avatar) = avatar {
avatar.display_with_labels(ui, &username, &role);
} else {
ui.label(&username);