From 8b33525a36d3320009eebe6958aae41a30a46d96 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 6 Jun 2022 01:23:35 -0500 Subject: [PATCH] GUI: always go to beginning of song when loading --- src/gui/gui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 4ecc719d..309d605b 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -1657,6 +1657,8 @@ int FurnaceGUI::load(String path) { curNibble=false; orderNibble=false; orderCursor=-1; + curOrder=0; + oldRow=0; samplePos=0; updateSampleTex=true; selStart=SelectionPoint(); @@ -1666,6 +1668,7 @@ int FurnaceGUI::load(String path) { undoHist.clear(); redoHist.clear(); updateWindowTitle(); + updateScroll(0); if (!e->getWarnings().empty()) { showWarning(e->getWarnings(),GUI_WARN_GENERIC); }