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

Method handleMode

gui/builtinContextMenus/shipModeChange.py:66–73  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

64 return sub
65
66 def handleMode(self, event):
67 item = self.modeIds[event.Id]
68 if item is False or item not in self.modes:
69 event.Skip()
70 return
71
72 fitID = self.mainFrame.getActiveFit()
73 self.mainFrame.command.Submit(cmd.GuiChangeShipModeCommand(fitID, self.modeIds[event.Id].item.ID))
74
75
76ChangeShipTacticalMode.register()

Callers

nothing calls this directly

Calls 1

getActiveFitMethod · 0.45

Tested by

no test coverage detected