From 71cc48fd3864c32c970c137ebc28e5cd4a2912d9 Mon Sep 17 00:00:00 2001 From: gir489 <100792176+gir489returns@users.noreply.github.com> Date: Tue, 31 Oct 2023 15:35:56 -0400 Subject: [PATCH] Made X button unique in Persist Vehicle. (#2361) --- src/views/vehicle/spawn/view_persist_car.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/vehicle/spawn/view_persist_car.cpp b/src/views/vehicle/spawn/view_persist_car.cpp index 4ecdf389..9948412c 100644 --- a/src/views/vehicle/spawn/view_persist_car.cpp +++ b/src/views/vehicle/spawn/view_persist_car.cpp @@ -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())) {