MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / Undo

Method Undo

gui/fitCommands/gui/localModule/replace.py:48–62  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 return success
47
48 def Undo(self):
49 sFit = Fit.getInstance()
50 fit = sFit.getFit(self.fitID)
51 restoreRemovedDummies(fit, self.savedRemovedDummies)
52 success = self.internalHistory.undoAll()
53 eos.db.flush()
54 sFit.recalc(self.fitID)
55 sFit.fill(self.fitID)
56 eos.db.commit()
57 wx.PostEvent(
58 gui.mainFrame.MainFrame.getInstance(),
59 GE.FitChanged(fitIDs=(self.fitID,), action='moddel', typeID=self.itemID)
60 if success else
61 GE.FitChanged(fitIDs=(self.fitID,)))
62 return success

Callers

nothing calls this directly

Calls 7

restoreRemovedDummiesFunction · 0.90
getFitMethod · 0.80
undoAllMethod · 0.80
flushMethod · 0.80
recalcMethod · 0.80
getInstanceMethod · 0.45
fillMethod · 0.45

Tested by

no test coverage detected