don't load assets when loading temp ins

This commit is contained in:
tildearrow 2022-11-21 03:01:57 -05:00
parent 82649c9c81
commit 0627e38d63
4 changed files with 9 additions and 5 deletions

View file

@ -1475,7 +1475,7 @@ void FurnaceGUI::openFileDialog(FurnaceGUIFileDialogs type) {
dpiScale,
[this](const char* path) {
int sampleCountBefore=e->song.sampleLen;
std::vector<DivInstrument*> instruments=e->instrumentFromFile(path);
std::vector<DivInstrument*> instruments=e->instrumentFromFile(path,false);
if (!instruments.empty()) {
if (e->song.sampleLen!=sampleCountBefore) {
e->renderSamplesP();