From 4158b4fd5585ee5d10d1d8218414065bc5e87b47 Mon Sep 17 00:00:00 2001 From: yohannd1 Date: Tue, 20 Jan 2026 02:32:00 -0300 Subject: [PATCH] do not change selected sample (feels more efficient) --- src/gui/doAction.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/doAction.cpp b/src/gui/doAction.cpp index 51f003b06..0f58c0a69 100644 --- a/src/gui/doAction.cpp +++ b/src/gui/doAction.cpp @@ -1798,6 +1798,7 @@ void FurnaceGUI::doAction(int what) { } case GUI_ACTION_SAMPLE_COPY_NEW: { if (curSample<0 || curSample>=(int)e->song.sample.size()) break; + int prevSampleNum=curSample; DivSample* sample=e->song.sample[curSample]; SAMPLE_OP_BEGIN; if (end-start<1) { @@ -1837,6 +1838,7 @@ void FurnaceGUI::doAction(int what) { } e->renderSamples(); }); + curSample=prevSampleNum; // TODO: confirm these wantScrollListSample=true;