mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Allow setting userChanges container
Since that makes it possible to create an external factory method for creating stacks and makes the properties more consistent.
This commit is contained in:
parent
2f6936c961
commit
123c8bae45
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,10 @@ class GlobalStack(ContainerStack):
|
|||
|
||||
pyqtContainersChanged = pyqtSignal()
|
||||
|
||||
@pyqtProperty(InstanceContainer, notify = pyqtContainersChanged)
|
||||
def setUserChanges(self, new_user_changes: InstanceContainer) -> None:
|
||||
self.replaceContainer(_ContainerIndexes.UserChanges, new_user_changes)
|
||||
|
||||
@pyqtProperty(InstanceContainer, fset = setUserChanges, notify = pyqtContainersChanged)
|
||||
def userChanges(self) -> InstanceContainer:
|
||||
return self._containers[_ContainerIndexes.UserChanges]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue