mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:38:58 +08: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
@ -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…
x
Reference in New Issue
Block a user