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

Function restoreRemovedDummies

gui/fitCommands/helpers.py:387–393  ·  view source on GitHub ↗
(fit, dummyInfo)

Source from the content-addressed store, hash-verified

385
386
387def restoreRemovedDummies(fit, dummyInfo):
388 if dummyInfo is None:
389 return
390 # Need this to properly undo the case when removal of subsystems removes dummy slots
391 for position in sorted(dummyInfo):
392 slot = dummyInfo[position]
393 fit.modules.insert(position, Module.buildEmpty(slot))
394
395
396def getSimilarModPositions(mods, mainMod):

Callers 12

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 2

buildEmptyMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected