Skip to content

Commit

Permalink
Fix linux bugreport menu item failure
Browse files Browse the repository at this point in the history
On Linux/GTK menu items aren't actually created until they are added
to a menu. The recently added bugreport menu item was Enable()d before
adding, which fails on Linux.

Fixes: #11400
  • Loading branch information
kk7ds committed Jun 26, 2024
1 parent 2645364 commit 24f90e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chirp/wxui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,11 +970,11 @@ def make_menubar(self):
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.do_bugreport, self),
self.bug_report_item)
help_menu.Append(self.bug_report_item)
self.bug_report_item.Enable(False)

menu_bar = wx.MenuBar()
menu_bar.Append(file_menu, wx.GetStockLabel(wx.ID_FILE))
Expand Down

0 comments on commit 24f90e0

Please sign in to comment.