Move ID pool to context menu class rather than individual menu items

This commit is contained in:
blitzmann
2016-05-15 12:18:56 -04:00
parent 5176cc3b06
commit d061a13b58
11 changed files with 36 additions and 24 deletions

View File

@@ -48,7 +48,7 @@ class DamagePattern(ContextMenu):
return self.m
def addPattern(self, rootMenu, pattern):
id = wx.NewId()
id = ContextMenu.nextID()
name = getattr(pattern, "_name", pattern.name) if pattern is not None else "No Profile"
self.patternIds[id] = pattern