mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-30 08:23:01 +00:00
GUI: fix sample list right click bug
This commit is contained in:
parent
5c9569a64a
commit
fbbe0bdf63
1 changed files with 3 additions and 0 deletions
|
@ -202,6 +202,8 @@ void FurnaceGUI::waveListItem(int i, float* wavePreview, int dir, int asset) {
|
||||||
void FurnaceGUI::sampleListItem(int i, int dir, int asset) {
|
void FurnaceGUI::sampleListItem(int i, int dir, int asset) {
|
||||||
bool memWarning=false;
|
bool memWarning=false;
|
||||||
|
|
||||||
|
ImGui::PushID(i);
|
||||||
|
|
||||||
DivSample* sample=e->song.sample[i];
|
DivSample* sample=e->song.sample[i];
|
||||||
for (int j=0; j<e->song.systemLen; j++) {
|
for (int j=0; j<e->song.systemLen; j++) {
|
||||||
DivDispatch* dispatch=e->getDispatch(j);
|
DivDispatch* dispatch=e->getDispatch(j);
|
||||||
|
@ -268,6 +270,7 @@ void FurnaceGUI::sampleListItem(int i, int dir, int asset) {
|
||||||
ImGui::EndPopup();
|
ImGui::EndPopup();
|
||||||
}
|
}
|
||||||
if (wantScrollList && curSample==i) ImGui::SetScrollHereY();
|
if (wantScrollList && curSample==i) ImGui::SetScrollHereY();
|
||||||
|
ImGui::PopID();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FurnaceGUI::drawInsList(bool asChild) {
|
void FurnaceGUI::drawInsList(bool asChild) {
|
||||||
|
|
Loading…
Reference in a new issue