From e38e8fcc5fd04c1130b7cb3143cbfdbc850a180d Mon Sep 17 00:00:00 2001 From: tildearrow Date: Fri, 10 Feb 2023 19:20:05 -0500 Subject: [PATCH] GUI: make sure to focus when double-click wave/smp issue #817 --- src/gui/dataList.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/dataList.cpp b/src/gui/dataList.cpp index 8edde40d..cce46444 100644 --- a/src/gui/dataList.cpp +++ b/src/gui/dataList.cpp @@ -756,6 +756,7 @@ void FurnaceGUI::actualWaveList() { if (ImGui::IsItemHovered()) { if (ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) { waveEditOpen=true; + nextWindow=GUI_WINDOW_WAVE_EDIT; } } ImGui::SameLine(); @@ -794,6 +795,7 @@ void FurnaceGUI::actualSampleList() { ImGui::SetTooltip("Bank %d: %s",i/12,sampleNote[i%12]); if (ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) { sampleEditOpen=true; + nextWindow=GUI_WINDOW_SAMPLE_EDIT; } ImGui::PopStyleColor(); }