Merge pull request #1786 from pyfa-org/issue/1777

Recalc fit after removing implants (and undoing removal)
This commit is contained in:
Ryan Holmes
2018-10-28 21:07:58 -04:00
committed by GitHub

View File

@@ -17,6 +17,7 @@ class GuiRemoveImplantCommand(wx.Command):
def Do(self):
if self.internal_history.Submit(FitRemoveImplantCommand(self.fitID, self.position)):
self.sFit.recalc(self.fitID)
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=self.fitID))
return True
return False
@@ -24,5 +25,6 @@ class GuiRemoveImplantCommand(wx.Command):
def Undo(self):
for _ in self.internal_history.Commands:
self.internal_history.Undo()
self.sFit.recalc(self.fitID)
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=self.fitID))
return True