mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 08:48:40 +02:00
[commands] GroupedGraphModification: add 'disableUpdates' option
gives control over whether graph updates should be disabled during this grouped modification
This commit is contained in:
parent
bc8b39b172
commit
4f392a310b
2 changed files with 11 additions and 7 deletions
|
@ -221,16 +221,17 @@ class UIGraph(QObject):
|
|||
"""
|
||||
return self._undoStack.tryAndPush(command)
|
||||
|
||||
def groupedGraphModification(self, title):
|
||||
def groupedGraphModification(self, title, disableUpdates=True):
|
||||
""" Get a GroupedGraphModification for this Graph.
|
||||
|
||||
Args:
|
||||
title (str): the title of the macro command
|
||||
disableUpdates (bool): whether to disable graph updates
|
||||
|
||||
Returns:
|
||||
GroupedGraphModification: the instantiated context manager
|
||||
"""
|
||||
return commands.GroupedGraphModification(self._graph, self._undoStack, title)
|
||||
return commands.GroupedGraphModification(self._graph, self._undoStack, title, disableUpdates)
|
||||
|
||||
def beginModification(self, name):
|
||||
""" Begin a Graph modification. Calls to beginModification and endModification may be nested, but
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue