IDE: removed one (last ?) wx.NewId() that was called on each opening of project tree popup menu
authorEdouard Tisserant
Tue, 15 Feb 2022 11:09:39 +0100
changeset 3439 2739fbd82569
parent 3427 f748161de54b
child 3440 3770ded5db5c
IDE: removed one (last ?) wx.NewId() that was called on each opening of project tree popup menu
IDEFrame.py
--- a/IDEFrame.py	Sun Feb 13 21:21:14 2022 +0100
+++ b/IDEFrame.py	Tue Feb 15 11:09:39 2022 +0100
@@ -1989,7 +1989,7 @@
                         self.Bind(wx.EVT_MENU, self.GenerateChangePouTypeFunction(name, "functionBlock"), new_item)
                     new_item = AppendMenu(change_menu, help='', kind=wx.ITEM_NORMAL, text=_("Program"))
                     self.Bind(wx.EVT_MENU, self.GenerateChangePouTypeFunction(name, "program"), new_item)
-                    menu.AppendMenu(wx.NewId(), _("Duplicate as..."), change_menu)
+                    menu.AppendMenu(wx.ID_ANY, _("Duplicate as..."), change_menu)
                 new_item = AppendMenu(menu, help='', kind=wx.ITEM_NORMAL, text=_("Rename"))
                 self.Bind(wx.EVT_MENU, self.OnRenamePouMenu, new_item)