From 0fdde1ee278dfb7a0ff2bb9cde57f302765efabb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Va=CC=81clav=20Slavi=CC=81k?= Date: Wed, 3 Jun 2020 15:18:25 +0200 Subject: [PATCH] Add a button to send email when disabling QA warnings 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. --- src/edframe.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/edframe.cpp b/src/edframe.cpp index 2428d8abc0..79c0002051 100644 --- a/src/edframe.cpp +++ b/src/edframe.cpp @@ -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 help@poedit.net 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:help@poedit.net?subject=Warnings"); + }); } }