GUI: move delete button to end in sample list
This commit is contained in:
parent
aeeaa9ca1d
commit
937c3f1c27
|
@ -1074,15 +1074,6 @@ void FurnaceGUI::drawSampleList(bool asChild) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
pushDestColor();
|
|
||||||
if (ImGui::Button(ICON_FA_TIMES "##SampleDelete")) {
|
|
||||||
doAction(GUI_ACTION_SAMPLE_LIST_DELETE);
|
|
||||||
}
|
|
||||||
popDestColor();
|
|
||||||
if (ImGui::IsItemHovered()) {
|
|
||||||
ImGui::SetTooltip("Delete");
|
|
||||||
}
|
|
||||||
ImGui::SameLine();
|
|
||||||
if (ImGui::Button(ICON_FA_VOLUME_UP "##PreviewSampleL")) {
|
if (ImGui::Button(ICON_FA_VOLUME_UP "##PreviewSampleL")) {
|
||||||
doAction(GUI_ACTION_SAMPLE_LIST_PREVIEW);
|
doAction(GUI_ACTION_SAMPLE_LIST_PREVIEW);
|
||||||
}
|
}
|
||||||
|
@ -1096,6 +1087,15 @@ void FurnaceGUI::drawSampleList(bool asChild) {
|
||||||
if (ImGui::IsItemHovered()) {
|
if (ImGui::IsItemHovered()) {
|
||||||
ImGui::SetTooltip("Stop preview");
|
ImGui::SetTooltip("Stop preview");
|
||||||
}
|
}
|
||||||
|
ImGui::SameLine();
|
||||||
|
pushDestColor();
|
||||||
|
if (ImGui::Button(ICON_FA_TIMES "##SampleDelete")) {
|
||||||
|
doAction(GUI_ACTION_SAMPLE_LIST_DELETE);
|
||||||
|
}
|
||||||
|
popDestColor();
|
||||||
|
if (ImGui::IsItemHovered()) {
|
||||||
|
ImGui::SetTooltip("Delete");
|
||||||
|
}
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
if (ImGui::BeginTable("SampleListScroll",1,ImGuiTableFlags_ScrollY)) {
|
if (ImGui::BeginTable("SampleListScroll",1,ImGuiTableFlags_ScrollY)) {
|
||||||
actualSampleList();
|
actualSampleList();
|
||||||
|
|
Loading…
Reference in New Issue