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

Method Undo

gui/fitCommands/gui/itemsRebase.py:70–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68 return len(self.internalHistory) > 0
69
70 def Undo(self):
71 sFit = Fit.getInstance()
72 success = self.internalHistory.undoAll()
73 eos.db.flush()
74 sFit.recalc(self.fitID)
75 sFit.fill(self.fitID)
76 eos.db.commit()
77 wx.PostEvent(gui.mainFrame.MainFrame.getInstance(), GE.FitChanged(fitIDs=(self.fitID,)))
78 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