Fix pattern editor focus when selecting instrument

This commit is contained in:
YohananDiamond 2023-06-02 19:21:50 -03:00
parent 2abdb17490
commit 81e53f39f0

View file

@ -292,11 +292,10 @@ void FurnaceGUI::insListItem(int i, int dir, int asset) {
wavePreviewInit=true;
updateFMPreview=true;
lastAssetType=0;
if (insListDir) nextWindow=GUI_WINDOW_PATTERN;
}
if (wantScrollList && curIns==i) ImGui::SetScrollHereY();
if (settings.insFocusesPattern && patternOpen && ImGui::IsItemActivated()) {
if (!insListDir) nextWindow=GUI_WINDOW_PATTERN;
nextWindow=GUI_WINDOW_PATTERN;
curIns=i;
wavePreviewInit=true;
updateFMPreview=true;