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

Method Undo

gui/fitCommands/gui/localDrone/remove.py:40–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 return success
39
40 def Undo(self):
41 success = self.internalHistory.undoAll()
42 eos.db.flush()
43 sFit = Fit.getInstance()
44 sFit.recalc(self.fitID)
45 sFit.fill(self.fitID)
46 eos.db.commit()
47 wx.PostEvent(gui.mainFrame.MainFrame.getInstance(), GE.FitChanged(fitIDs=(self.fitID,)))
48 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