From 7a0b88f65dcb66f164adf0c55aa5f859cdb109b1 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Fri, 9 May 2014 17:38:52 +0100 Subject: [PATCH] Tweaked feedback reminder in sorting UI. Closes #152. --- src/gui/editor.cpp | 7 ++++--- src/gui/editor.h | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gui/editor.cpp b/src/gui/editor.cpp index 88645acd..29e9aa51 100644 --- a/src/gui/editor.cpp +++ b/src/gui/editor.cpp @@ -157,8 +157,9 @@ MiniEditor::MiniEditor(wxWindow *parent, const wxString& title, const std::list< editingPanel = new wxPanel(this, wxID_ANY); //Initialise controls. + feedbackText = translate("If LOOT has gotten something wrong, please let the team know. See the Contributing To LOOT section of the readme for details."); pluginText = new wxStaticText(editingPanel, wxID_ANY, ""); - descText = new wxStaticText(this, wxID_ANY, translate("Please submit any edits made for reasons other than personal preference to the LOOT team so that they may be included in the masterlist.")); + descText = new wxStaticText(this, wxID_ANY, feedbackText); prioritySpin = new wxSpinCtrl(editingPanel, wxID_ANY, "0"); prioritySpin->SetRange(std::numeric_limits::min(), std::numeric_limits::max()); filterCheckbox = new wxCheckBox(editingPanel, wxID_ANY, translate("Show only conflicting plugins")); @@ -325,7 +326,7 @@ void MiniEditor::OnPluginSelect(wxListEvent& event) { Fit(); } else { - descText->SetLabel(translate("Please submit any edits made for reasons other than personal preference to the LOOT team so that they may be included in the masterlist.")); + descText->SetLabel(feedbackText); descText->Wrap(GetClientSize().GetWidth() - 30); } } @@ -463,7 +464,7 @@ loot::Plugin MiniEditor::GetNewData(const wxString& plugin) const { } void MiniEditor::OnResize(wxSizeEvent& event) { - descText->SetLabel(translate("Please submit any edits made for reasons other than personal preference to the LOOT team so that they may be included in the masterlist.")); + descText->SetLabel(feedbackText); descText->Wrap(GetClientSize().GetWidth()-30); event.Skip(); } diff --git a/src/gui/editor.h b/src/gui/editor.h index 8fbb8070..1b8cda9c 100644 --- a/src/gui/editor.h +++ b/src/gui/editor.h @@ -104,6 +104,8 @@ private: wxStaticText * pluginText; wxStaticText * descText; + wxString feedbackText; + loot::Plugin GetNewData(const wxString& plugin) const; };