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

Method Undo

gui/fitCommands/calc/module/localClone.py:44–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 return True
43
44 def Undo(self):
45 pyfalog.debug('Undoing cloning of local module from position {} to position {} for fit ID {}'.format(self.srcPosition, self.dstPosition, self.fitID))
46 from .localRemove import CalcRemoveLocalModulesCommand
47 cmd = CalcRemoveLocalModulesCommand(fitID=self.fitID, positions=[self.dstPosition], recalc=False)
48 if not cmd.Do():
49 return False
50 restoreCheckedStates(Fit.getInstance().getFit(self.fitID), self.savedStateCheckChanges)
51 return True
52
53 @property
54 def needsGuiRecalc(self):

Callers

nothing calls this directly

Calls 5

DoMethod · 0.95
restoreCheckedStatesFunction · 0.90
getFitMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected