MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / saveTemplateDialog

Function saveTemplateDialog

src/CardinalCommon.cpp:1180–1197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1178}
1179
1180void saveTemplateDialog()
1181{
1182 asyncDialog::create("Overwrite template patch?", []{
1183 rack::system::createDirectories(system::getDirectory(APP->patch->templatePath));
1184
1185 try {
1186 APP->patch->save(APP->patch->templatePath);
1187 }
1188 catch (Exception& e) {
1189 asyncDialog::create(string::f("Could not save template patch: %s", e.what()).c_str());
1190 return;
1191 }
1192
1193 #ifdef DISTRHO_OS_WASM
1194 syncfs();
1195 #endif
1196 });
1197}
1198
1199void openBrowser(const std::string& url)
1200{

Callers

nothing calls this directly

Calls 5

createFunction · 0.85
fFunction · 0.85
c_strMethod · 0.80
syncfsFunction · 0.70
saveMethod · 0.45

Tested by

no test coverage detected