GUI: BeginPopupContextItem fix

This commit is contained in:
tildearrow 2023-07-29 13:22:05 -05:00
parent b83d8f3198
commit bc7e267a85

View file

@ -20,7 +20,7 @@ void FurnaceGUI::drawEffectList() {
ImGui::SameLine();
}
ImGui::Button(ICON_FA_BARS "##SortEffects");
if (ImGui::BeginPopupContextItem("effectSort")) {
if (ImGui::BeginPopupContextItem("effectSort",ImGuiPopupFlags_MouseButtonLeft)) {
for (int i=0; i<9; i++) {
ImGui::PushStyleColor(ImGuiCol_Text,uiColors[fxColorsSort[i]]);
ImGui::Checkbox(fxColorsNames[i],&effectsShow[i]);