mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06: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
2 changed files with 5 additions and 3 deletions
|
@ -25,9 +25,10 @@ class ExtruderConfigurationModel(QObject):
|
||||||
return self._position
|
return self._position
|
||||||
|
|
||||||
def setMaterial(self, material: Optional[MaterialOutputModel]) -> None:
|
def setMaterial(self, material: Optional[MaterialOutputModel]) -> None:
|
||||||
if self._material != material:
|
if material is None or self._material == material:
|
||||||
self._material = material
|
return
|
||||||
self.extruderConfigurationChanged.emit()
|
self._material = material
|
||||||
|
self.extruderConfigurationChanged.emit()
|
||||||
|
|
||||||
@pyqtProperty(QObject, fset = setMaterial, notify = extruderConfigurationChanged)
|
@pyqtProperty(QObject, fset = setMaterial, notify = extruderConfigurationChanged)
|
||||||
def activeMaterial(self) -> Optional[MaterialOutputModel]:
|
def activeMaterial(self) -> Optional[MaterialOutputModel]:
|
||||||
|
|
|
@ -21,6 +21,7 @@ Item
|
||||||
property var colorsModel: materialType != null ? materialType.colors: null
|
property var colorsModel: materialType != null ? materialType.colors: null
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
anchors.left: parent.left
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
id: material_type_header_background
|
id: material_type_header_background
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue