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

Method loadAction

src/patch.cpp:384–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382
383
384void Manager::loadAction(std::string path) {
385 try {
386 load(path);
387 }
388 catch (Exception& e) {
389 std::string message = string::f(string::translate("patch.loadFailed"), e.what());
390 osdialog_message(OSDIALOG_WARNING, OSDIALOG_OK, message.c_str());
391 return;
392 }
393
394 this->path = path;
395 APP->history->setSaved();
396 pushRecentPath(path);
397}
398
399
400void Manager::loadDialog() {

Callers

nothing calls this directly

Calls 5

loadFunction · 0.85
translateFunction · 0.85
whatMethod · 0.80
setSavedMethod · 0.80
fFunction · 0.70

Tested by

no test coverage detected