(self, callingWindow, fullContext, mainItem, i)
| 33 | return _t("Add {} to Cargo").format(itmContext) |
| 34 | |
| 35 | def activate(self, callingWindow, fullContext, mainItem, i): |
| 36 | fitID = self.mainFrame.getActiveFit() |
| 37 | typeID = int(mainItem.ID) |
| 38 | command = cmd.GuiAddCargoCommand(fitID=fitID, itemID=typeID, amount=1) |
| 39 | if self.mainFrame.command.Submit(command): |
| 40 | self.mainFrame.additionsPane.select("Cargo", focus=False) |
| 41 | |
| 42 | |
| 43 | AddToCargo.register() |
nothing calls this directly
no test coverage detected