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

Method Undo

gui/fitCommands/gui/localModule/remove.py:45–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 return success
44
45 def Undo(self):
46 sFit = Fit.getInstance()
47 fit = sFit.getFit(self.fitID)
48 restoreRemovedDummies(fit, self.savedRemovedDummies)
49 success = self.internalHistory.undoAll()
50 eos.db.flush()
51 sFit.recalc(self.fitID)
52 sFit.fill(self.fitID)
53 eos.db.commit()
54 wx.PostEvent(
55 gui.mainFrame.MainFrame.getInstance(),
56 GE.FitChanged(fitIDs=(self.fitID,), action='modadd', typeID=self.savedTypeIDs)
57 if success and self.savedTypeIDs else
58 GE.FitChanged(fitIDs=(self.fitID,)))
59 return success

Callers

nothing calls this directly

Calls 7

restoreRemovedDummiesFunction · 0.90
getFitMethod · 0.80
undoAllMethod · 0.80
flushMethod · 0.80
recalcMethod · 0.80
getInstanceMethod · 0.45
fillMethod · 0.45

Tested by

no test coverage detected