SaveTool: add a {Push,Pop}ID pair.
There were issues with the buttons in the backup list.
This commit is contained in:
parent
6842b3d3f3
commit
3172939b53
1 changed files with 2 additions and 0 deletions
|
@ -273,6 +273,7 @@ auto SaveTool::drawBackupListPopup() -> ImGuiID {
|
||||||
ImGui::TextUnformatted(_profileManager->backups().at(i).type == ProfileType::Demo ? "Demo" : "Full");
|
ImGui::TextUnformatted(_profileManager->backups().at(i).type == ProfileType::Demo ? "Demo" : "Full");
|
||||||
|
|
||||||
ImGui::TableSetColumnIndex(3);
|
ImGui::TableSetColumnIndex(3);
|
||||||
|
ImGui::PushID(i);
|
||||||
if(ImGui::SmallButton(ICON_FA_UNDO)) {
|
if(ImGui::SmallButton(ICON_FA_UNDO)) {
|
||||||
backup_index = i;
|
backup_index = i;
|
||||||
ImGui::OpenPopup(restore_backup_popup_id);
|
ImGui::OpenPopup(restore_backup_popup_id);
|
||||||
|
@ -282,6 +283,7 @@ auto SaveTool::drawBackupListPopup() -> ImGuiID {
|
||||||
backup_index = i;
|
backup_index = i;
|
||||||
ImGui::OpenPopup(delete_backup_popup_id);
|
ImGui::OpenPopup(delete_backup_popup_id);
|
||||||
}
|
}
|
||||||
|
ImGui::PopID();
|
||||||
}
|
}
|
||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue