MCPcopy Create free account
hub / github.com/audacity/audacity / OnSend

Method OnSend

libraries/lib-wx-init/ErrorReportDialog.cpp:257–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257void 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
272void ErrorReportDialog::OnDontSend(wxCommandEvent& event)
273{

Callers

nothing calls this directly

Calls 5

ToUTF8Function · 0.85
CallAfterFunction · 0.85
AddUserCommentMethod · 0.80
GetValueMethod · 0.45
SendMethod · 0.45

Tested by

no test coverage detected