mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-15 17:25:06 +00:00
GUI: always go to beginning of song when loading
This commit is contained in:
parent
992d61661b
commit
8b33525a36
1 changed files with 3 additions and 0 deletions
|
@ -1657,6 +1657,8 @@ int FurnaceGUI::load(String path) {
|
||||||
curNibble=false;
|
curNibble=false;
|
||||||
orderNibble=false;
|
orderNibble=false;
|
||||||
orderCursor=-1;
|
orderCursor=-1;
|
||||||
|
curOrder=0;
|
||||||
|
oldRow=0;
|
||||||
samplePos=0;
|
samplePos=0;
|
||||||
updateSampleTex=true;
|
updateSampleTex=true;
|
||||||
selStart=SelectionPoint();
|
selStart=SelectionPoint();
|
||||||
|
@ -1666,6 +1668,7 @@ int FurnaceGUI::load(String path) {
|
||||||
undoHist.clear();
|
undoHist.clear();
|
||||||
redoHist.clear();
|
redoHist.clear();
|
||||||
updateWindowTitle();
|
updateWindowTitle();
|
||||||
|
updateScroll(0);
|
||||||
if (!e->getWarnings().empty()) {
|
if (!e->getWarnings().empty()) {
|
||||||
showWarning(e->getWarnings(),GUI_WARN_GENERIC);
|
showWarning(e->getWarnings(),GUI_WARN_GENERIC);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue