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

Function restoreCheckedStates

gui/fitCommands/helpers.py:373–384  ·  view source on GitHub ↗
(fit, stateInfo, ignoreModPoss=())

Source from the content-addressed store, hash-verified

371
372
373def restoreCheckedStates(fit, stateInfo, ignoreModPoss=()):
374 if stateInfo is None:
375 return
376 changedMods, changedProjMods, changedProjDrones = stateInfo
377 for pos, state in changedMods.items():
378 if pos in ignoreModPoss:
379 continue
380 fit.modules[pos].state = state
381 for pos, state in changedProjMods.items():
382 fit.projectedModules[pos].state = state
383 for pos, amountActive in changedProjDrones.items():
384 fit.projectedDrones[pos].amountActive = amountActive
385
386
387def restoreRemovedDummies(fit, dummyInfo):

Callers 14

UndoMethod · 0.90
UndoMethod · 0.90
UndoMethod · 0.90
UndoMethod · 0.90
UndoMethod · 0.90
UndoMethod · 0.90
UndoMethod · 0.90
UndoMethod · 0.90
UndoMethod · 0.90
UndoMethod · 0.90
UndoMethod · 0.90
UndoMethod · 0.90

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected