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

Function downloadRemotePatchFailed

src/CardinalUI.cpp:240–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238};
239
240static void downloadRemotePatchFailed(const char* const filename)
241{
242 d_stdout("downloadRemotePatchFailed %s", filename);
243 CardinalPluginContext* const context = static_cast<CardinalPluginContext*>(APP);
244 CardinalBaseUI* const ui = static_cast<CardinalBaseUI*>(context->ui);
245
246 if (ui->psDialog != nullptr)
247 {
248 ui->psDialog->overlay->requestDelete();
249 ui->psDialog = nullptr;
250 asyncDialog::create("Failed to fetch remote patch");
251 }
252
253 using namespace rack;
254 context->patch->templatePath = rack::system::join(asset::patchesPath(), "templates/main.vcv");
255 context->patch->loadTemplate();
256 context->scene->rackScroll->reset();
257}
258
259static void downloadRemotePatchSucceeded(const char* const filename)
260{

Callers

nothing calls this directly

Calls 5

createFunction · 0.85
patchesPathFunction · 0.85
requestDeleteMethod · 0.80
loadTemplateMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected