Fix deprecated WX call producing warning.
--- a/editors/Viewer.py Wed Jan 24 10:41:09 2024 +0100
+++ b/editors/Viewer.py Wed Jan 24 10:42:10 2024 +0100
@@ -634,7 +634,7 @@
add_menu = wx.Menu(title='')
self.AddAddMenuItems(add_menu)
- menu.AppendMenu(-1, _('Add'), add_menu)
+ menu.Append(wx.ID_NEW, _('Add'), add_menu)
menu.AppendSeparator()
@@ -2184,8 +2184,6 @@
wx.CallAfter(self.SetCurrentCursor, 0)
elif not self.Debug:
self.PopupDefaultMenu(False)
- if self.Editor.HasCapture():
- self.Editor.ReleaseMouse()
event.Skip()
def OnViewerLeftDClick(self, event):