Convert module charge handling to command pattern (adding charges and removing charges)

This commit is contained in:
blitzmann
2018-07-21 18:04:07 -04:00
parent ec3cd75f4c
commit 5d0342ee2d
6 changed files with 38 additions and 12 deletions

View File

@@ -379,8 +379,7 @@ class FittingView(d.Display):
sel = self.GetNextSelected(sel)
if len(modules) > 0:
sFit.setAmmo(fitID, itemID, modules)
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fitID))
self.mainFrame.command.Submit(cmd.FitModuleAddChargeCommand(fitID, itemID, modules))
else:
self.mainFrame.command.Submit(cmd.FitModuleAddCommand(fitID, itemID))