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

Method saveTemplateDialog

src/patch.cpp:221–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219
220
221void Manager::saveTemplateDialog() {
222 // Even if <user>/template.vcv doesn't exist, this message is still valid because it overrides the <system>/template.vcv patch.
223 if (!osdialog_message(OSDIALOG_INFO, OSDIALOG_OK_CANCEL, string::translate("patch.overwriteTemplate").c_str()))
224 return;
225
226 try {
227 save(templatePath);
228 }
229 catch (Exception& e) {
230 std::string message = string::f(string::translate("patch.saveTemplateFailed"), e.what());
231 osdialog_message(OSDIALOG_INFO, OSDIALOG_OK, message.c_str());
232 return;
233 }
234}
235
236
237void Manager::saveAutosave() {

Callers

nothing calls this directly

Calls 4

translateFunction · 0.85
saveFunction · 0.85
whatMethod · 0.80
fFunction · 0.70

Tested by

no test coverage detected