MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / activate

Method activate

gui/builtinContextMenus/droneAddStack.py:43–49  ·  view source on GitHub ↗
(self, callingWindow, fullContext, mainItem, i)

Source from the content-addressed store, hash-verified

41 itmContext, '' if self.amount == 1 else ' (x{})'.format(self.amount))
42
43 def activate(self, callingWindow, fullContext, mainItem, i):
44 command = cmd.GuiAddLocalDroneCommand(
45 fitID=self.mainFrame.getActiveFit(),
46 itemID=int(mainItem.ID),
47 amount=self.amount)
48 if self.mainFrame.command.Submit(command):
49 self.mainFrame.additionsPane.select('Drones', focus=False)
50
51
52DroneAddStack.register()

Callers

nothing calls this directly

Calls 2

selectMethod · 0.80
getActiveFitMethod · 0.45

Tested by

no test coverage detected