libgui/GuiFrame.py:onMenu(): clear event queue after calling command function.

This commit is contained in:
Lucio Andrés Illanes Albornoz 2019-09-14 15:20:20 +02:00
parent 31babe1994
commit 270a19ea40

View File

@ -168,7 +168,7 @@ class GuiFrame(wx.Frame):
def onMenu(self, event): def onMenu(self, event):
eventId = event.GetId() eventId = event.GetId()
if eventId in self.itemsById: if eventId in self.itemsById:
self.itemsById[eventId](event) self.itemsById[eventId](event); wx.SafeYield();
else: else:
event.Skip() event.Skip()
# }}} # }}}