Skip to content

Commit

Permalink
Limit bugreport subject field
Browse files Browse the repository at this point in the history
A user might think this is their only opportunity to put in details
and stuff a tome into this field.
  • Loading branch information
kk7ds committed Sep 9, 2024
1 parent d2143e4 commit 7bed337
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chirp/wxui/bugreport.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 7bed337

Please sign in to comment.