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

Method Undo

gui/fitCommands/calc/module/localSwap.py:23–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21 return True
22
23 def Undo(self):
24 self.__swap(self.fitID, self.position2, self.position1)
25 pyfalog.debug('Undoing swapping between {} and {} for fit {}'.format(self.position1, self.position2, self.fitID))
26 return True
27
28 def __swap(self, fitID, position1, position2):
29 fit = Fit.getInstance().getFit(fitID)

Callers

nothing calls this directly

Calls 1

__swapMethod · 0.95

Tested by

no test coverage detected