From 24f90e0b3f1ef40a0665e2c24e59212511dfc07e Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Wed, 26 Jun 2024 15:52:50 -0700 Subject: [PATCH] Fix linux bugreport menu item failure 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 --- chirp/wxui/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chirp/wxui/main.py b/chirp/wxui/main.py index cf55f582d..81b481fa3 100644 --- a/chirp/wxui/main.py +++ b/chirp/wxui/main.py @@ -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))