[Profile] UI: Skip current draw in case of failure.
This should resolve random crash while removing profile
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user