From 3464dd17f5642b6534b9a6872074223197768574 Mon Sep 17 00:00:00 2001 From: ExecThTs Date: Mon, 3 Feb 2025 12:44:11 +0100 Subject: [PATCH] let's finish the job, pay attention to the selection as well --- src/gui/sampleEdit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/sampleEdit.cpp b/src/gui/sampleEdit.cpp index 54feebfd4..c347b1b41 100644 --- a/src/gui/sampleEdit.cpp +++ b/src/gui/sampleEdit.cpp @@ -1376,10 +1376,10 @@ void FurnaceGUI::drawSampleEdit() { } sameLineMaybe(); if (ImGui::Button(ICON_FA_PLAY_CIRCLE "##PreviewSampleFromCursor")) { - e->previewSample(curSample, -1, sampleSelStart); + e->previewSample(curSample, -1, sampleSelStart, sampleSelEnd == sampleSelStart ? -1 : sampleSelEnd); } if (ImGui::IsItemHovered()) { - ImGui::SetTooltip(_("Preview sample from cursor")); + ImGui::SetTooltip(_("Preview sample from cursor or selection only")); } sameLineMaybe(); if (ImGui::Button(ICON_FA_STOP "##StopSample")) {