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

Method Undo

gui/fitCommands/gui/projectedModule/add.py:31–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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