GUI: implement "clear all subsongs"

This commit is contained in:
tildearrow 2022-05-17 01:42:21 -05:00
parent b8a4fdb4c6
commit c4614bff30
3 changed files with 14 additions and 4 deletions

View file

@ -3494,10 +3494,7 @@ bool FurnaceGUI::loop() {
case GUI_WARN_CLEAR:
if (ImGui::Button("All subsongs")) {
stop();
//e->lockEngine([this]() {
//e->curSubSong->clearData();
//});
e->setOrder(0);
e->clearSubSongs();
curOrder=0;
oldOrder=0;
oldOrder1=0;