Allow recalculating fit without changing slot layout (e.g. when t3c subs added/removed)

This commit is contained in:
DarkPhoenix
2019-04-30 13:21:39 +03:00
parent e9dffeadf6
commit fa2bceaff9
68 changed files with 375 additions and 745 deletions

View File

@@ -138,7 +138,8 @@ class GuiCargoToLocalModuleCommand(wx.Command):
else:
return False
eos.db.commit()
sFit.recalc(fit)
sFit.recalc(self.fitID)
sFit.fill(self.fitID)
events = []
if self.removedModItemID is not None:
events.append(GE.FitChanged(fitID=self.fitID, action='moddel', typeID=self.removedModItemID))
@@ -153,7 +154,9 @@ class GuiCargoToLocalModuleCommand(wx.Command):
def Undo(self):
success = self.internalHistory.undoAll()
eos.db.commit()
Fit.getInstance().recalc(self.fitID)
sFit = Fit.getInstance()
sFit.recalc(self.fitID)
sFit.fill(self.fitID)
events = []
if self.addedModItemID is not None:
events.append(GE.FitChanged(fitID=self.fitID, action='moddel', typeID=self.addedModItemID))