Various event binding fixes for context menus. It's still a mess, but it's not as bad of a mess.

(cherry picked from commit 081e32da6f)
This commit is contained in:
blitzmann
2014-11-30 01:19:10 -05:00
parent 9a8642e789
commit 892c5c5b60
16 changed files with 198 additions and 180 deletions

View File

@@ -8,7 +8,6 @@ class AmmoPattern(ContextMenu):
def __init__(self):
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
def display(self, srcContext, selection):
if srcContext not in ("marketItemGroup", "marketItemMisc") or self.mainFrame.getActiveFit() is None:
return False
@@ -33,5 +32,4 @@ class AmmoPattern(ContextMenu):
def getBitmap(self, context, selection):
return None
AmmoPattern.register()