From 02c316f9d163f928780609dae739919aa0c21beb Mon Sep 17 00:00:00 2001 From: YohananDiamond Date: Sat, 3 Jun 2023 02:27:35 -0300 Subject: [PATCH] Part 2 --- src/gui/dataList.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/gui/dataList.cpp b/src/gui/dataList.cpp index 4d108c96f..57dafb255 100644 --- a/src/gui/dataList.cpp +++ b/src/gui/dataList.cpp @@ -292,15 +292,10 @@ void FurnaceGUI::insListItem(int i, int dir, int asset) { wavePreviewInit=true; updateFMPreview=true; lastAssetType=0; + if (settings.insFocusesPattern && patternOpen) + nextWindow=GUI_WINDOW_PATTERN; } if (wantScrollList && curIns==i) ImGui::SetScrollHereY(); - if (settings.insFocusesPattern && patternOpen && ImGui::IsItemActivated()) { - nextWindow=GUI_WINDOW_PATTERN; - curIns=i; - wavePreviewInit=true; - updateFMPreview=true; - lastAssetType=0; - } if (ImGui::IsItemHovered() && i>=0 && !mobileUI) { ImGui::PushStyleColor(ImGuiCol_Text,uiColors[GUI_COLOR_TEXT]); ImGui::SetTooltip("%s",insType);