SaveTool: move a PushID call in the profile manager.

Fixes #9.
This commit is contained in:
Guillaume Jacquemin 2021-08-01 18:48:14 +02:00
parent 406349bbe8
commit ee639bcdf8
1 changed files with 1 additions and 1 deletions

View File

@ -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);