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

Method Undo

gui/fitCommands/calc/commandFit/add.py:51–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 return True
50
51 def Undo(self):
52 pyfalog.debug('Undoing addition of command fit {} for fit {}'.format(self.commandFitID, self.fitID))
53 # Can't find the command fit, it must have been deleted. Just skip, as deleted fit
54 # means that someone else just did exactly what we wanted to do
55 commandFit = Fit.getInstance().getFit(self.commandFitID)
56 if commandFit is None:
57 return True
58 from .remove import CalcRemoveCommandFitCommand
59 cmd = CalcRemoveCommandFitCommand(fitID=self.fitID, commandFitID=self.commandFitID)
60 return cmd.Do()

Callers 1

DoMethod · 0.95

Calls 4

DoMethod · 0.95
getFitMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected