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

Method Undo

gui/fitCommands/calc/module/changeSpool.py:38–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36 return True
37
38 def Undo(self):
39 pyfalog.debug('Undoing change of module spoolup at position {} to {} type {} amount on fit {}'.format(self.position, self.spoolType, self.spoolAmount, self.fitID))
40 cmd = CalcChangeModuleSpoolCommand(
41 fitID=self.fitID,
42 projected=self.projected,
43 position=self.position,
44 spoolType=self.savedSpoolType,
45 spoolAmount=self.savedSpoolAmount)
46 return cmd.Do()

Callers

nothing calls this directly

Calls 2

DoMethod · 0.95

Tested by

no test coverage detected