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

Method Undo

gui/fitCommands/calc/booster/add.py:58–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

56 return True
57
58 def Undo(self):
59 pyfalog.debug('Undo addition of booster {} to fit {}'.format(self.newBoosterInfo, self.fitID))
60 if self.oldBoosterInfo is not None and self.oldPosition is not None:
61 cmd = CalcAddBoosterCommand(fitID=self.fitID, boosterInfo=self.oldBoosterInfo, position=self.oldPosition)
62 return cmd.Do()
63 from .remove import CalcRemoveBoosterCommand
64 cmd = CalcRemoveBoosterCommand(fitID=self.fitID, position=self.newPosition)
65 return cmd.Do()

Callers

nothing calls this directly

Calls 3

DoMethod · 0.95

Tested by

no test coverage detected