From ee639bcdf8398d913be3b01d2078c679ff8256ce Mon Sep 17 00:00:00 2001 From: William JCM Date: Sun, 1 Aug 2021 18:48:14 +0200 Subject: [PATCH] SaveTool: move a PushID call in the profile manager. Fixes #9. --- src/SaveTool/SaveTool_ProfileManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SaveTool/SaveTool_ProfileManager.cpp b/src/SaveTool/SaveTool_ProfileManager.cpp index a48ab24..490d9ee 100644 --- a/src/SaveTool/SaveTool_ProfileManager.cpp +++ b/src/SaveTool/SaveTool_ProfileManager.cpp @@ -80,6 +80,7 @@ void SaveTool::drawProfileManager() { ImGui::TableNextRow(); ImGui::TableSetColumnIndex(0); + ImGui::PushID(i); if(ImGui::Selectable(_profileManager->profiles().at(i).companyName().c_str(), false, ImGuiSelectableFlags_SpanAllColumns|ImGuiSelectableFlags_AllowItemOverlap)) { @@ -92,7 +93,6 @@ void SaveTool::drawProfileManager() { ImGui::TextUnformatted(_profileManager->profiles().at(i).type() == ProfileType::Demo ? "Demo" : "Full"); ImGui::TableSetColumnIndex(2); - ImGui::PushID(i); if(ImGui::SmallButton(ICON_FA_FILE_ARCHIVE)) { profile_index = i; ImGui::OpenPopup(backup_popup_id);