From e4e92f9af33e87a962f660001759dc0e22a20cc3 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 23 Aug 2023 04:29:17 -0500 Subject: [PATCH] too many buttons --- src/gui/dataList.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/gui/dataList.cpp b/src/gui/dataList.cpp index b373f72af..dce62c82a 100644 --- a/src/gui/dataList.cpp +++ b/src/gui/dataList.cpp @@ -892,15 +892,11 @@ void FurnaceGUI::drawSampleList(bool asChild) { doAction(GUI_ACTION_SAMPLE_LIST_PREVIEW); } if (ImGui::IsItemHovered()) { - ImGui::SetTooltip("Preview"); + ImGui::SetTooltip("Preview (right click to stop)"); } - ImGui::SameLine(); - if (ImGui::Button(ICON_FA_VOLUME_OFF "##StopSampleL")) { + if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) { doAction(GUI_ACTION_SAMPLE_LIST_STOP_PREVIEW); } - if (ImGui::IsItemHovered()) { - ImGui::SetTooltip("Stop preview"); - } ImGui::SameLine(); pushDestColor(); if (ImGui::Button(ICON_FA_TIMES "##SampleDelete")) {