From 937c3f1c27925a3565db7ceafc4838a777edd08c Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 22 Jun 2023 19:52:07 -0500 Subject: [PATCH] GUI: move delete button to end in sample list --- src/gui/dataList.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/gui/dataList.cpp b/src/gui/dataList.cpp index 77084e06f..b9c1e11a7 100644 --- a/src/gui/dataList.cpp +++ b/src/gui/dataList.cpp @@ -1074,15 +1074,6 @@ void FurnaceGUI::drawSampleList(bool asChild) { } } 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")) { doAction(GUI_ACTION_SAMPLE_LIST_PREVIEW); } @@ -1096,6 +1087,15 @@ void FurnaceGUI::drawSampleList(bool asChild) { if (ImGui::IsItemHovered()) { 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(); if (ImGui::BeginTable("SampleListScroll",1,ImGuiTableFlags_ScrollY)) { actualSampleList();