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

Method Undo

gui/fitCommands/gui/projectedFit/add.py:34–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32 return success
33
34 def Undo(self):
35 success = self.internalHistory.undoAll()
36 sFit = Fit.getInstance()
37 eos.db.flush()
38 sFit.recalc(self.fitID)
39 sFit.fill(self.fitID)
40 eos.db.commit()
41 wx.PostEvent(gui.mainFrame.MainFrame.getInstance(), GE.FitChanged(fitIDs=(self.fitID,)))
42 return success

Callers

nothing calls this directly

Calls 5

undoAllMethod · 0.80
flushMethod · 0.80
recalcMethod · 0.80
getInstanceMethod · 0.45
fillMethod · 0.45

Tested by

no test coverage detected