Skip to content

Commit

Permalink
Add ability to report new bugs from within CHIRP
Browse files Browse the repository at this point in the history
  • Loading branch information
kk7ds committed Jun 25, 2024
1 parent 63c5c2e commit de5e0c4
Show file tree
Hide file tree
Showing 17 changed files with 4,555 additions and 2,916 deletions.
450 changes: 265 additions & 185 deletions chirp/locale/de.po

Large diffs are not rendered by default.

444 changes: 263 additions & 181 deletions chirp/locale/el.po

Large diffs are not rendered by default.

438 changes: 258 additions & 180 deletions chirp/locale/en_US.po

Large diffs are not rendered by default.

469 changes: 285 additions & 184 deletions chirp/locale/es.po

Large diffs are not rendered by default.

463 changes: 276 additions & 187 deletions chirp/locale/fr.po

Large diffs are not rendered by default.

450 changes: 265 additions & 185 deletions chirp/locale/hu.po

Large diffs are not rendered by default.

401 changes: 252 additions & 149 deletions chirp/locale/it.po

Large diffs are not rendered by default.

438 changes: 257 additions & 181 deletions chirp/locale/ja_JP.po

Large diffs are not rendered by default.

450 changes: 265 additions & 185 deletions chirp/locale/nl.po

Large diffs are not rendered by default.

464 changes: 276 additions & 188 deletions chirp/locale/pl.po

Large diffs are not rendered by default.

450 changes: 265 additions & 185 deletions chirp/locale/pt_BR.po

Large diffs are not rendered by default.

463 changes: 276 additions & 187 deletions chirp/locale/ru.po

Large diffs are not rendered by default.

460 changes: 276 additions & 184 deletions chirp/locale/tr_TR.po

Large diffs are not rendered by default.

450 changes: 265 additions & 185 deletions chirp/locale/uk_UA.po

Large diffs are not rendered by default.

450 changes: 265 additions & 185 deletions chirp/locale/zh_CN.po

Large diffs are not rendered by default.

713 changes: 533 additions & 180 deletions chirp/wxui/bugreport.py

Large diffs are not rendered by default.

18 changes: 13 additions & 5 deletions chirp/wxui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,12 @@ def current_editorset(self):
if isinstance(eset, ChirpEditorSet):
return eset

def enable_bugreport(self):
self.bug_report_item.Enable(True)

@common.error_proof(errors.ImageDetectFailed, FileNotFoundError)
def open_file(self, filename, exists=True, select=True, rclass=None):
self.enable_bugreport()
CSVRadio = directory.get_radio('Generic_CSV')
label = _('Driver messages')
with common.expose_logs(logging.WARNING, 'chirp.drivers', label):
Expand Down Expand Up @@ -963,12 +967,14 @@ def make_menubar(self):
self.Bind(wx.EVT_MENU, self._menu_load_from_issue, lmfi_menu)
help_menu.Append(lmfi_menu)

bug_report = wx.MenuItem(help_menu, wx.NewId(),
_('Send details for a bug...'))
self.bug_report_item = wx.MenuItem(
help_menu, wx.NewId(),
_('Report or update a bug...'))
self.bug_report_item.Enable(False)
self.Bind(wx.EVT_MENU,
functools.partial(bugreport.BugReportDialog.do_report, self),
bug_report)
help_menu.Append(bug_report)
functools.partial(bugreport.do_bugreport, self),
self.bug_report_item)
help_menu.Append(self.bug_report_item)

menu_bar = wx.MenuBar()
menu_bar.Append(file_menu, wx.GetStockLabel(wx.ID_FILE))
Expand Down Expand Up @@ -1550,6 +1556,7 @@ def _make_backup(self, radio):
LOG.exception('Failed to prune: %s' % e)

def _menu_download(self, event):
self.enable_bugreport()
with clone.ChirpDownloadDialog(self) as d:
d.Centre()
if d.ShowModal() == wx.ID_OK:
Expand Down Expand Up @@ -1834,6 +1841,7 @@ def _menu_select_bandplan(self, event):
CONF.set_bool(shortname, shortname == selected, 'bandplan')

def _do_network_query(self, query_cls):
self.enable_bugreport()
d = query_cls(self, title=_('Query %s') % query_cls.NAME)
r = d.ShowModal()
if r == wx.ID_OK:
Expand Down

0 comments on commit de5e0c4

Please sign in to comment.