Fix type of setProperty

And properly pass on the extra parameters.

Contributes to issue CURA-5330.
This commit is contained in:
Ghostkeeper 2018-06-01 13:34:41 +02:00
parent e38228ac24
commit b920b9de4f
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -186,9 +186,9 @@ class CuraContainerStack(ContainerStack):
# \param key The key of the setting to set.
# \param property_name The name of the property to set.
# \param new_value The new value to set the property to.
def setProperty(self, key: str, property_name: str, new_value: Any) -> None:
def setProperty(self, key: str, property_name: str, property_value: Any, container: "ContainerInterface" = None, set_from_cache: bool = False) -> None:
container_index = _ContainerIndexes.UserChanges
self._containers[container_index].setProperty(key, property_name, new_value)
self._containers[container_index].setProperty(key, property_name, property_value, container, set_from_cache)
## Overridden from ContainerStack
#