Recalc fit after removing implants (and undoing removal)

This commit is contained in:
blitzmann
2018-10-28 21:07:12 -04:00
parent f854627888
commit 63115a7c0f

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