Browse Source

Reset autosave dir if template patch cannot be loaded.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
2676883311
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/patch.cpp

+ 3
- 0
src/patch.cpp View File

@@ -279,6 +279,9 @@ void Manager::loadTemplate() {
catch (Exception& e) {
std::string message = string::f("Could not load system template patch, clearing rack: %s", e.what());
osdialog_message(OSDIALOG_INFO, OSDIALOG_OK, message.c_str());

system::removeRecursively(autosavePath);
system::createDirectories(autosavePath);
clear();
}
}


Loading…
Cancel
Save