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

Method Undo

gui/fitCommands/gui/commandFit/add.py:33–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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