Skip to content

Commit

Permalink
Add a button to send email when disabling QA warnings
Browse files Browse the repository at this point in the history
Make it easier to send feedback as suggested when disabling QA
warnings. Instead of just telling the user, show a "Send feedback" button
to make it easier.

Fixes #617.
  • Loading branch information
vslavik committed Jun 3, 2020
1 parent 23e86f2 commit 0fdde1e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/edframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2063,10 +2063,15 @@ void PoeditFrame::OnToggleWarnings(wxCommandEvent& e)
this,
_("Warnings have been disabled."),
"Poedit",
wxOK
wxYES|wxNO
));
err->SetExtendedMessage(_("If you disabled the warnings because of excessive false positives, please consider sending a sample file to [email protected] to help improve them."));
err->ShowWindowModalThenDo([err](int){});
// TRANSLATORS: This is a button to send email with feedback when clicked
err->SetYesNoLabels(wxID_OK, MSW_OR_OTHER(_("Send feedback"), _("Send Feedback")));
err->ShowWindowModalThenDo([err](int retcode){
if (retcode == wxID_NO) // "Send feedback"
wxLaunchDefaultBrowser("mailto:[email protected]?subject=Warnings");
});
}
}

Expand Down

0 comments on commit 0fdde1e

Please sign in to comment.