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

Method submitBatch

gui/fitCommands/helpers.py:29–37  ·  view source on GitHub ↗
(self, *commands)

Source from the content-addressed store, hash-verified

27 return self.__buffer.Submit(command)
28
29 def submitBatch(self, *commands):
30 for command in commands:
31 if not self.__buffer.Submit(command):
32 # Undo what we already submitted
33 for commandToUndo in reversed(self.__buffer.Commands):
34 if commandToUndo in commands:
35 self.__buffer.Undo()
36 return False
37 return True
38
39 def undoAll(self):
40 undoneCommands = []

Callers 13

DoMethod · 0.80
DoMethod · 0.80
DoMethod · 0.80
DoMethod · 0.80
DoMethod · 0.80
DoMethod · 0.80
DoMethod · 0.80
DoMethod · 0.80
DoMethod · 0.80
DoMethod · 0.80
DoMethod · 0.80
DoMethod · 0.80

Calls 1

UndoMethod · 0.45

Tested by

no test coverage detected