diff --git a/core/interface/songEditor/fSongEdit.cpp b/core/interface/songEditor/fSongEdit.cpp index ed788fb14..db39d8239 100644 --- a/core/interface/songEditor/fSongEdit.cpp +++ b/core/interface/songEditor/fSongEdit.cpp @@ -944,6 +944,22 @@ void cSongEditor::changeSongPositionSelection(int16_t value) refreshSongPlayerSelectedSlot(); } +void cSongEditor::goToSongTop() +{ + if (SE->editMode == 0) + { + if (!sequencer.isStop()) + { + return; + } + } + + selectedSongPosition = 0; + + refreshPatternsList(); + refreshSongPlayerSelectedSlot(); +} + //====================================================================================================================== //============================================================================================== void cSongEditor::refreshEditMode() @@ -1700,7 +1716,7 @@ static void functInsert() switch (SE->selectedPlace) { case 0: SE->walkOnSongPlayer(playerHome); break; - case 1: SE->changeSongPositionSelection(-300); break; + case 1: SE->goToSongTop(); break; } } } diff --git a/core/interface/songEditor/songEditor.h b/core/interface/songEditor/songEditor.h index 3eef2ba3a..b0dc9b2f3 100644 --- a/core/interface/songEditor/songEditor.h +++ b/core/interface/songEditor/songEditor.h @@ -72,6 +72,7 @@ class cSongEditor : public ModuleBase void setDefaultScreenFunct(); void changeSongPositionSelection(int16_t value); + void goToSongTop(); void changeSelectedPlayListPattern(int value); void readSong();