Rework cargo-related GUI commands and use command when deleting item from cargo with delete key

This commit is contained in:
DarkPhoenix
2019-04-14 16:13:01 +03:00
parent d61d69188f
commit 1cb0081420
12 changed files with 63 additions and 77 deletions

View File

@@ -607,18 +607,6 @@ class FitDeprecated(object):
return True
@deprecated
def removeCargo(self, fitID, position):
pyfalog.debug("Removing cargo from position ({0}) fit ID: {1}", position, fitID)
if fitID is None:
return False
fit = eos.db.getFit(fitID)
charge = fit.cargo[position]
fit.cargo.remove(charge)
self.recalc(fit)
return True
@deprecated
def addFighter(self, fitID, itemID, recalc=True):
pyfalog.debug("Adding fighters ({0}) to fit ID: {1}", itemID, fitID)