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

Method Undo

gui/fitCommands/gui/localFighter/add.py:32–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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