Rely on clicked item instead of selection where it makes sense
This commit is contained in:
@@ -29,7 +29,7 @@ class AddToCargo(ContextMenu):
|
||||
def activate(self, fullContext, mainItem, selection, i):
|
||||
fitID = self.mainFrame.getActiveFit()
|
||||
|
||||
typeID = int(selection[0].ID)
|
||||
typeID = int(mainItem.ID)
|
||||
|
||||
self.mainFrame.command.Submit(cmd.GuiAddCargoCommand(
|
||||
fitID=fitID, itemID=typeID, amount=1))
|
||||
|
||||
Reference in New Issue
Block a user