MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / activate

Method activate

gui/builtinContextMenus/cargoAdd.py:35–40  ·  view source on GitHub ↗
(self, callingWindow, fullContext, mainItem, i)

Source from the content-addressed store, hash-verified

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
43AddToCargo.register()

Callers

nothing calls this directly

Calls 2

selectMethod · 0.80
getActiveFitMethod · 0.45

Tested by

no test coverage detected