mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 17:09:02 +08:00
Mark recently constructed stacks as not dirty
The stacks would get marked dirty for setting some metadata, but since thats part of their construction, they aren't really dirty. Previously, every single stack that was loaded would be marked as dirty, which causes unneeded saving.
This commit is contained in:
parent
43c5d05853
commit
f0002e265b
@ -60,6 +60,8 @@ class CuraContainerStack(ContainerStack):
|
||||
import cura.CuraApplication #Here to prevent circular imports.
|
||||
self.setMetaDataEntry("setting_version", cura.CuraApplication.CuraApplication.SettingVersion)
|
||||
|
||||
self.setDirty(False)
|
||||
|
||||
# This is emitted whenever the containersChanged signal from the ContainerStack base class is emitted.
|
||||
pyqtContainersChanged = pyqtSignal()
|
||||
|
||||
|
@ -32,6 +32,8 @@ class ExtruderStack(CuraContainerStack):
|
||||
|
||||
self.propertiesChanged.connect(self._onPropertiesChanged)
|
||||
|
||||
self.setDirty(False)
|
||||
|
||||
enabledChanged = pyqtSignal()
|
||||
|
||||
@override(ContainerStack)
|
||||
|
@ -55,6 +55,8 @@ class GlobalStack(CuraContainerStack):
|
||||
# properties. So we need to tie them together like this.
|
||||
self.metaDataChanged.connect(self.configuredConnectionTypesChanged)
|
||||
|
||||
self.setDirty(False)
|
||||
|
||||
extrudersChanged = pyqtSignal()
|
||||
configuredConnectionTypesChanged = pyqtSignal()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user