Skip to content

Commit

Permalink
🚨 Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed Nov 29, 2023
1 parent cade2b2 commit 6b94405
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ auto main(int argc, char* argv[]) -> int

for (auto const id : input_device_ids)
{
auto const info = input_stream.device_info(id);
bool const is_selected = info.name == combo_text;
if (ImGui::Selectable(info.name.c_str(), is_selected))
auto const info = input_stream.device_info(id);
bool const is_selected2 = info.name == combo_text;
if (ImGui::Selectable(info.name.c_str(), is_selected2))
{
input_stream.use_given_device(info);
}

if (is_selected) // Set the initial focus when opening the combo (scrolling + keyboard navigation focus)
if (is_selected2) // Set the initial focus when opening the combo (scrolling + keyboard navigation focus)
ImGui::SetItemDefaultFocus();
}
ImGui::EndCombo();
Expand Down

0 comments on commit 6b94405

Please sign in to comment.