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

Method revertChanges

gui/builtinItemStatsViews/itemMutator.py:228–236  ·  view source on GitHub ↗
(self, evt)

Source from the content-addressed store, hash-verified

226 evt.Skip()
227
228 def revertChanges(self, evt):
229 self.isModified = False
230 sFit = Fit.getInstance()
231 for slider, m in self.event_mapping.items():
232 if m.attrID in self.initialMutations:
233 value = sFit.changeMutatedValuePrelim(m, self.initialMutations[m.attrID])
234 value = self._simplifyValue(m, value)
235 slider.SetValue(value, affect_modified_flag=False)
236 evt.Skip()
237
238 def OnWindowClose(self):
239 # Submit mutation changes

Callers

nothing calls this directly

Calls 5

_simplifyValueMethod · 0.95
itemsMethod · 0.80
getInstanceMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected