minor bug fixes

This commit is contained in:
2025-12-03 02:11:25 -05:00
parent 24f98fe0a0
commit b4fddb7714
9 changed files with 26 additions and 7 deletions
+8 -2
View File
@@ -3,8 +3,8 @@
#include <imgui/imgui_internal.h>
#include <format>
#include <cmath>
#include <format>
#include <sstream>
#include <unordered_map>
@@ -116,10 +116,16 @@ namespace anm2ed::imgui
return isActivated;
}
std::string& selectable_input_text_id()
{
static std::string editID{};
return editID;
}
bool selectable_input_text(const std::string& label, const std::string& id, std::string& text, bool isSelected,
ImGuiSelectableFlags flags, RenameState& state)
{
static std::string editID{};
auto& editID = selectable_input_text_id();
auto isRename = editID == id;
bool isActivated{};