Made X button unique in Persist Vehicle. (#2361)

This commit is contained in:
gir489 2023-10-31 15:35:56 -04:00 committed by GitHub
parent debe7892d1
commit 71cc48fd38

View File

@ -135,10 +135,12 @@ namespace big
}
ImGui::SameLine();
ImGui::PushID(pair.c_str());
if (ImGui::SmallButton("X"))
{
file_name_to_delete = pair;
}
ImGui::PopID();
if (!g.persist_car.preview_vehicle || (g.persist_car.preview_vehicle && !ImGui::IsAnyItemHovered()))
{