* Provide correct text formatting index

* Fix remove item context menu in projected pane
This commit is contained in:
Ryan Holmes
2017-09-19 19:20:10 -04:00
committed by GitHub
parent 59b09a255a
commit ee392e07c4
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ class ItemRemove(ContextMenu):
sFit.removeBooster(fitID, fit.boosters.index(selection[0]))
elif srcContext == "cargoItem":
sFit.removeCargo(fitID, fit.cargo.index(selection[0]))
elif srcContext == "projectedFit":
elif srcContext in ("projectedFit", "projectedModule", "projectedDrone", "projectedFighter"):
sFit.removeProjected(fitID, selection[0])
elif srcContext == "commandFit":
sFit.removeCommand(fitID, selection[0])

View File

@@ -630,7 +630,7 @@ class Fit(object):
self.setAmmo(fitID, cargo.item.ID, [module])
return
pyfalog.debug("Moving cargo item to module for fit ID: {1}", fitID)
pyfalog.debug("Moving cargo item to module for fit ID: {0}", fitID)
# Gather modules and convert Cargo item to Module, silently return if not a module
try: