Skip to content

Commit

Permalink
GUI: fix sample list right click bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tildearrow committed Nov 1, 2023
1 parent 5c9569a commit fbbe0bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/dataList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit fbbe0bd

Please sign in to comment.