Undoing removal of drones now restores their proper state

This commit is contained in:
DarkPhoenix
2019-04-11 18:20:56 +03:00
parent e90e9a5ca1
commit 5579929f83
6 changed files with 65 additions and 42 deletions

View File

@@ -353,23 +353,6 @@ class FitDeprecated(object):
eos.db.commit()
self.recalc(fit)
@deprecated
def removeProjected(self, fitID, thing):
pyfalog.debug("Removing projection on fit ({0}) from: {1}", fitID, thing)
fit = eos.db.getFit(fitID)
if isinstance(thing, es_Drone):
fit.projectedDrones.remove(thing)
elif isinstance(thing, es_Module):
fit.projectedModules.remove(thing)
elif isinstance(thing, es_Fighter):
fit.projectedFighters.remove(thing)
else:
del fit.projectedFitDict[thing.ID]
# fit.projectedFits.remove(thing)
eos.db.commit()
self.recalc(fit)
@deprecated
def removeCommand(self, fitID, thing):
pyfalog.debug("Removing command projection from fit ({0}) for: {1}", fitID, thing)