Application: use name instead of payload type as ID.

This commit is contained in:
Guillaume Jacquemin 2024-12-10 14:25:16 +01:00
parent 08de4ef475
commit 90a3dc65bf
Signed by: williamjcm
SSH key fingerprint: SHA256:AYLOg+iTV0ElElnlu4vqM4edFazVdRiuQB0Y5LoKc4A

View file

@ -91,7 +91,7 @@ Application::drawWeaponCategory(Containers::StringView name, GameObjects::Weapon
ImGui::TableNextColumn(); ImGui::TableNextColumn();
ImGui::TextUnformatted(name.cbegin(), name.cend()); ImGui::TextUnformatted(name.cbegin(), name.cend());
ImGui::PushID(payload_type.data()); ImGui::PushID(name.cbegin());
if(drawUnsafeWidget(ImGui::SmallButton, ICON_FA_SAVE " Save")) { if(drawUnsafeWidget(ImGui::SmallButton, ICON_FA_SAVE " Save")) {
_modifiedBySaveTool = true; _modifiedBySaveTool = true;