mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Make code a bit smarter about reusing ExtruderConfigurationModels
This prevents a lot of unneeded signal noise
This commit is contained in:
parent
ee25c4b94c
commit
05a6c9c3cf
2 changed files with 13 additions and 4 deletions
|
@ -34,3 +34,11 @@ class MaterialOutputModel(QObject):
|
|||
@pyqtProperty(str, constant = True)
|
||||
def name(self) -> str:
|
||||
return self._name
|
||||
|
||||
def __eq__(self, other):
|
||||
if self is other:
|
||||
return True
|
||||
if type(other) is not MaterialOutputModel:
|
||||
return False
|
||||
|
||||
return self.guid == other.guid and self.type == other.type and self.brand == other.brand and self.color == other.color and self.name == other.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue