| 255 | } |
| 256 | |
| 257 | void ErrorReportDialog::OnSend(wxCommandEvent& event) |
| 258 | { |
| 259 | Disable(); |
| 260 | |
| 261 | if (mCommentsControl != nullptr) |
| 262 | mReport->AddUserComment(audacity::ToUTF8(mCommentsControl->GetValue())); |
| 263 | |
| 264 | mReport->Send( |
| 265 | [this](int code, std::string body) { |
| 266 | CallAfter([this]() { |
| 267 | EndModal(true); |
| 268 | }); |
| 269 | }); |
| 270 | } |
| 271 | |
| 272 | void ErrorReportDialog::OnDontSend(wxCommandEvent& event) |
| 273 | { |
nothing calls this directly
no test coverage detected