MCPcopy Create free account
hub / github.com/VCVRack/Rack / loadTemplate

Method loadTemplate

src/app/ModuleWidget.cpp:622–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620}
621
622void ModuleWidget::loadTemplate() {
623 std::string templatePath = system::join(model->getUserPresetDirectory(), "template.vcvm");
624 try {
625 load(templatePath);
626 }
627 catch (Exception& e) {
628 // Do nothing
629 }
630}
631
632void ModuleWidget::loadDialog() {
633 std::string presetDir = model->getUserPresetDirectory();

Callers 1

chooseModelFunction · 0.45

Calls 3

loadFunction · 0.85
joinFunction · 0.50

Tested by

no test coverage detected