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

Method clearTemplate

src/app/ModuleWidget.cpp:707–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705}
706
707void ModuleWidget::clearTemplate() {
708 std::string presetDir = model->getUserPresetDirectory();
709 std::string templatePath = system::join(presetDir, "template.vcvm");
710 system::remove(templatePath);
711}
712
713void ModuleWidget::clearTemplateDialog() {
714 std::string message = string::f(string::translate("ModuleWidget.clearTemplateDialog"), model->getFullName());

Callers

nothing calls this directly

Calls 3

removeFunction · 0.85
joinFunction · 0.50

Tested by

no test coverage detected