Displays an error dialog with a button that offers help
| 2463 | |
| 2464 | /// Displays an error dialog with a button that offers help |
| 2465 | void ProjectFileIO::ShowError(const BasicUI::WindowPlacement &placement, |
| 2466 | const TranslatableString &dlogTitle, |
| 2467 | const TranslatableString &message, |
| 2468 | const wxString &helpPage) |
| 2469 | { |
| 2470 | using namespace audacity; |
| 2471 | using namespace BasicUI; |
| 2472 | ShowErrorDialog( placement, dlogTitle, message, helpPage, |
| 2473 | ErrorDialogOptions{ ErrorDialogType::ModalErrorReport } |
| 2474 | .Log(ToWString(GetLastLog()))); |
| 2475 | } |
| 2476 | |
| 2477 | const TranslatableString &ProjectFileIO::GetLastError() const |
| 2478 | { |
no test coverage detected