From d5b18ab080ffcc3a695cbafdaaf3b87b3c2450eb Mon Sep 17 00:00:00 2001 From: Eknous-P Date: Fri, 28 Jul 2023 18:24:56 +0400 Subject: [PATCH] is this "the button" --- src/gui/effectList.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/effectList.cpp b/src/gui/effectList.cpp index 6b309cdc9..e9da54d56 100644 --- a/src/gui/effectList.cpp +++ b/src/gui/effectList.cpp @@ -12,7 +12,8 @@ void FurnaceGUI::drawEffectList() { ImGui::SetNextWindowSizeConstraints(ImVec2(60.0f*dpiScale,20.0f*dpiScale),ImVec2(canvasW,canvasH)); if (ImGui::Begin("Effect List",&effectListOpen,globalWinFlags)) { ImGui::Text("Chip at cursor: %s",e->getSystemName(e->sysOfChan[cursor.xCoarse])); - if (ImGui::TreeNode("Sort Effects")) { + if (ImGui::Button("Sort Effects")) ImGui::OpenPopup("effectSort"); + if (ImGui::BeginPopup("effectSort")) { ImGui::Checkbox("Pitch",&effectShowPitch); ImGui::Checkbox("Song",&effectShowSong); ImGui::Checkbox("Time",&effectShowTime); @@ -45,7 +46,7 @@ void FurnaceGUI::drawEffectList() { effectShowSysPrimary = false; effectShowSysSecondary = false; } - ImGui::TreePop(); + ImGui::EndPopup(); } if (ImGui::BeginTable("effectList",2)) {