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

Method toggleFactorReload

service/fit.py:266–276  ·  view source on GitHub ↗
(self, value=None)

Source from the content-addressed store, hash-verified

264 eos.db.commit()
265
266 def toggleFactorReload(self, value=None):
267 self.serviceFittingOptions['useGlobalForceReload'] = value if value is not None else not self.serviceFittingOptions['useGlobalForceReload']
268 fitIDs = set()
269 for fit in set(self._loadedFits):
270 if fit is None:
271 continue
272 if fit.calculated:
273 fit.factorReload = self.serviceFittingOptions['useGlobalForceReload']
274 fit.clearFactorReloadDependentData()
275 fitIDs.add(fit.ID)
276 return fitIDs
277
278 def processOverrideToggle(self):
279 fitIDs = set()

Callers 2

activateMethod · 0.80

Calls 1

Tested by

no test coverage detected