GUI: don't allow drag-and-drop during intro

This commit is contained in:
tildearrow 2023-09-19 03:10:35 -05:00
parent ebed2936af
commit 8a9ac46545

View file

@ -3544,6 +3544,10 @@ bool FurnaceGUI::loop() {
break;
case SDL_DROPFILE:
if (ev.drop.file!=NULL) {
if (introPos<11.0) {
SDL_free(ev.drop.file);
break;
}
int sampleCountBefore=e->song.sampleLen;
std::vector<DivInstrument*> instruments=e->instrumentFromFile(ev.drop.file,true,settings.readInsNames);
DivWavetable* droppedWave=NULL;