[Profile] UI: Skip current draw in case of failure.
This should resolve random crash while removing profile
This commit is contained in:
parent
487f4407c3
commit
32b3151132
|
@ -183,7 +183,11 @@ void ProfileConfigDialog::OnDraw(ImGuiIO& io) {
|
|||
const uint8_t user_index =
|
||||
profile_manager->GetUserIndexAssignedToProfile(xuid);
|
||||
|
||||
DrawProfileContent(xuid, user_index, &account);
|
||||
if (!DrawProfileContent(xuid, user_index, &account)) {
|
||||
ImGui::PopID();
|
||||
ImGui::End();
|
||||
return;
|
||||
}
|
||||
|
||||
ImGui::PopID();
|
||||
ImGui::Spacing();
|
||||
|
|
Loading…
Reference in New Issue