Skip to content

Commit

Permalink
fix: refresh user info when unfold menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Serein207 committed Oct 7, 2024
1 parent 9602afb commit bc5eeb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/View/MenuOverlay.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ void MenuOverlay::onShow() {
}
return;
}
self->set_user_avatar(result.unwrap());
});
}

Expand All @@ -55,6 +54,7 @@ Task<Result<slint::Image>> MenuOverlay::loadUserInfoTask() {
co_return Ok(
slint::Image::load_from_path(slint::SharedString(avatar.unwrap().string().c_str())));
}
refreshUserInfo(userInfo);
bridge.getAccountManager().userInfo() = std::move(userInfo);
co_return Err(Error(Error::Data, "User avatar not found"));
}
Expand Down

0 comments on commit bc5eeb8

Please sign in to comment.