From bc7bc76d68677d1cf85dd12f624ed91dac0d4d23 Mon Sep 17 00:00:00 2001 From: Adrian <78108584+AdrianCassar@users.noreply.github.com> Date: Sun, 22 Mar 2026 20:37:51 +0000 Subject: [PATCH] [APP] Fixed loading profile icon via login slots --- src/xenia/app/profile_dialogs.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/xenia/app/profile_dialogs.cc b/src/xenia/app/profile_dialogs.cc index 54b166d85..11d6f5df3 100644 --- a/src/xenia/app/profile_dialogs.cc +++ b/src/xenia/app/profile_dialogs.cc @@ -216,7 +216,21 @@ void ProfileConfigDialog::OnDraw(ImGuiIO& io) { if (ImGui::BeginMenu("Login to slot:")) { for (uint8_t i = 1; i <= XUserMaxUserCount; i++) { if (ImGui::MenuItem(fmt::format("slot {}", i).c_str())) { + uint64_t current_slot_xuid = 0; + + if (const auto current_profile = profile_manager->GetProfile( + static_cast(i - 1)); + current_profile) { + current_slot_xuid = current_profile->xuid(); + } + profile_manager->Login(xuid, i - 1); + LoadProfileIcon(xuid); + + // Release resources + if (current_slot_xuid) { + LoadProfileIcon(current_slot_xuid); + } } } ImGui::EndMenu();