Fixes (#1288)
* Provide correct text formatting index * Fix remove item context menu in projected pane
This commit is contained in:
@@ -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])
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user