Create isCharge property

This commit is contained in:
blitzmann
2018-07-26 01:16:29 -04:00
parent 0d32b60f7e
commit 7f8ad3885d
3 changed files with 8 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ class GuiModuleAddCommand(wx.Command):
def Do(self):
success = False
# if we have a position set, try to apply the module to that position
# todo: check to see if item is a charge. if it is, dont try to add module, but instead set amm
if self.new_position:
success = self.internal_history.Submit(FitReplaceModuleCommand(self.fitID, self.new_position, self.itemID))
if not success: