GUI: fix sample list right click bug

This commit is contained in:
tildearrow 2023-11-01 00:16:35 -05:00
parent 5c9569a64a
commit fbbe0bdf63

View file

@ -202,6 +202,8 @@ void FurnaceGUI::waveListItem(int i, float* wavePreview, int dir, int asset) {
void FurnaceGUI::sampleListItem(int i, int dir, int asset) {
bool memWarning=false;
ImGui::PushID(i);
DivSample* sample=e->song.sample[i];
for (int j=0; j<e->song.systemLen; j++) {
DivDispatch* dispatch=e->getDispatch(j);
@ -268,6 +270,7 @@ void FurnaceGUI::sampleListItem(int i, int dir, int asset) {
ImGui::EndPopup();
}
if (wantScrollList && curSample==i) ImGui::SetScrollHereY();
ImGui::PopID();
}
void FurnaceGUI::drawInsList(bool asChild) {