diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-16 20:24:28 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-16 20:24:28 +0200 |
| commit | 543aa7d53136037f07302a5653bba90751ac1552 (patch) | |
| tree | 0911a4fbba487fbb28acb6a5934af0a95c024c64 /src/ui/helpers.cpp | |
| parent | 50848b2dd97093dd407ed7199118bca011f1aa4c (diff) | |
more refactors
Diffstat (limited to 'src/ui/helpers.cpp')
| -rw-r--r-- | src/ui/helpers.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/helpers.cpp b/src/ui/helpers.cpp index 7bde384..6ca1bd2 100644 --- a/src/ui/helpers.cpp +++ b/src/ui/helpers.cpp @@ -59,6 +59,7 @@ int TextInputWithAutocomplete(const char* label, const char* hint, char* buffer, for (int i = 0; i < suggestion_count; ++i) { + ImGui::PushID(i); if (ImGui::Selectable(suggestions[i])) { // Copy selected suggestion to buffer @@ -67,6 +68,7 @@ int TextInputWithAutocomplete(const char* label, const char* hint, char* buffer, result = i; is_open = false; } + ImGui::PopID(); } ImGui::EndChild(); |
