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

Function revertDialog

src/CardinalCommon.cpp:1089–1106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1087}
1088
1089void revertDialog()
1090{
1091#ifndef HEADLESS_BEHAVIOUR
1092 if (APP->patch->path.empty())
1093 return;
1094 promptClear("Revert patch to the last saved state?", []{
1095 APP->patch->loadAction(APP->patch->path);
1096
1097 #ifdef DISTRHO_OS_WASM
1098 syncfs();
1099 #endif
1100
1101 if (remoteUtils::RemoteDetails* const remoteDetails = remoteUtils::getRemote())
1102 if (remoteDetails->autoDeploy)
1103 remoteUtils::sendFullPatchToRemote(remoteDetails);
1104 });
1105#endif
1106}
1107
1108void saveDialog(const std::string& path)
1109{

Callers

nothing calls this directly

Calls 6

promptClearFunction · 0.70
syncfsFunction · 0.70
getRemoteFunction · 0.70
sendFullPatchToRemoteFunction · 0.70
emptyMethod · 0.45
loadActionMethod · 0.45

Tested by

no test coverage detected