| 1087 | } |
| 1088 | |
| 1089 | void 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 | |
| 1108 | void saveDialog(const std::string& path) |
| 1109 | { |
nothing calls this directly
no test coverage detected