mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 06:25:59 +08:00
Scouting: Try not to spam signals or errors as much.
nominally part of CURA-6863
This commit is contained in:
parent
4277ede64f
commit
09dc6ae44a
@ -25,7 +25,8 @@ class ExtruderConfigurationModel(QObject):
|
||||
return self._position
|
||||
|
||||
def setMaterial(self, material: Optional[MaterialOutputModel]) -> None:
|
||||
if self._material != material:
|
||||
if material is None or self._material == material:
|
||||
return
|
||||
self._material = material
|
||||
self.extruderConfigurationChanged.emit()
|
||||
|
||||
|
@ -21,6 +21,7 @@ Item
|
||||
property var colorsModel: materialType != null ? materialType.colors: null
|
||||
height: childrenRect.height
|
||||
width: parent.width
|
||||
anchors.left: parent.left
|
||||
Rectangle
|
||||
{
|
||||
id: material_type_header_background
|
||||
|
Loading…
x
Reference in New Issue
Block a user