From 7bed3376e2984dbd0b2855393470998e882d7bc8 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Mon, 9 Sep 2024 14:37:48 -0700 Subject: [PATCH] Limit bugreport subject field A user might think this is their only opportunity to put in details and stuff a tome into this field. --- chirp/wxui/bugreport.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chirp/wxui/bugreport.py b/chirp/wxui/bugreport.py index 6bd2e8eb..437a2b97 100644 --- a/chirp/wxui/bugreport.py +++ b/chirp/wxui/bugreport.py @@ -309,7 +309,8 @@ def GetNext(self): class NewBugInfo(BugReportPage): INST = _('Enter information about the bug including a short but ' 'meaningful subject and information about the radio model ' - '(if applicable) in question.') + '(if applicable) in question. In the next step you will have ' + 'a chance to add more details about the problem.') def _build(self, vbox): self.context.bugsubj = self.context.bugmodel = None @@ -323,6 +324,7 @@ def _build(self, vbox): panel, label=_('Bug subject:')), border=20, flag=wx.ALIGN_CENTER | wx.RIGHT | wx.LEFT) self.subj = wx.TextCtrl(panel) + self.subj.SetMaxLength(100) self.subj.Bind(wx.EVT_TEXT, self.validate_next) grid.Add(self.subj, 1, border=20, flag=wx.EXPAND | wx.RIGHT | wx.LEFT)