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

Method saveTemplateDialog

src/app/ModuleWidget.cpp:692–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690}
691
692void ModuleWidget::saveTemplateDialog() {
693 if (hasTemplate()) {
694 std::string message = string::f(string::translate("ModuleWidget.overwriteTemplate"), model->getFullName());
695 if (!osdialog_message(OSDIALOG_INFO, OSDIALOG_OK_CANCEL, message.c_str()))
696 return;
697 }
698 saveTemplate();
699}
700
701bool ModuleWidget::hasTemplate() {
702 std::string presetDir = model->getUserPresetDirectory();

Callers 2

createContextMenuMethod · 0.45
onActionMethod · 0.45

Calls 3

translateFunction · 0.85
fFunction · 0.50
getFullNameMethod · 0.45

Tested by

no test coverage detected