mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-30 14:34:23 +01:00
pfp: small fix in profile pic loading
I want to tweak the size of the profile pic, this is a small change that I noticed toward that goal. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -490,7 +490,7 @@ fn render_pfp(ui: &mut egui::Ui, img_cache: &mut ImageCache, url: &str) {
|
||||
|
||||
match img_cache[&urlkey].ready() {
|
||||
None => {
|
||||
ui.add(Spinner::new().size(40.0));
|
||||
ui.add(Spinner::new().size(pfp_size));
|
||||
}
|
||||
Some(Err(_err)) => {
|
||||
let failed_key = UrlKey::Failed(url).to_u64();
|
||||
@@ -504,7 +504,7 @@ fn render_pfp(ui: &mut egui::Ui, img_cache: &mut ImageCache, url: &str) {
|
||||
|
||||
match img_cache[&failed_key].ready() {
|
||||
None => {
|
||||
ui.add(Spinner::new().size(40.0));
|
||||
ui.add(Spinner::new().size(pfp_size));
|
||||
}
|
||||
Some(Err(_e)) => {
|
||||
//error!("Image load error: {:?}", e);
|
||||
|
||||
Reference in New Issue
Block a user