mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
Hide incompatible material message when a compatible material is chosen
CURA-2271
This commit is contained in:
parent
59457ad326
commit
fd5b512554
1 changed files with 6 additions and 3 deletions
|
@ -72,6 +72,9 @@ class MachineManager(QObject):
|
||||||
self._auto_materials_changed = {}
|
self._auto_materials_changed = {}
|
||||||
self._auto_hotends_changed = {}
|
self._auto_hotends_changed = {}
|
||||||
|
|
||||||
|
self._material_incompatible_message = Message(catalog.i18nc("@info:status",
|
||||||
|
"The selected material is imcompatible with the selected machine or configuration."))
|
||||||
|
|
||||||
globalContainerChanged = pyqtSignal() # Emitted whenever the global stack is changed (ie: when changing between printers, changing a global profile, but not when changing a value)
|
globalContainerChanged = pyqtSignal() # Emitted whenever the global stack is changed (ie: when changing between printers, changing a global profile, but not when changing a value)
|
||||||
activeMaterialChanged = pyqtSignal()
|
activeMaterialChanged = pyqtSignal()
|
||||||
activeVariantChanged = pyqtSignal()
|
activeVariantChanged = pyqtSignal()
|
||||||
|
@ -549,9 +552,9 @@ class MachineManager(QObject):
|
||||||
material_container.nameChanged.connect(self._onMaterialNameChanged)
|
material_container.nameChanged.connect(self._onMaterialNameChanged)
|
||||||
|
|
||||||
if material_container.getMetaDataEntry("compatible") == False:
|
if material_container.getMetaDataEntry("compatible") == False:
|
||||||
message = Message(catalog.i18nc("@info:status",
|
self._material_incompatible_message.show()
|
||||||
"The selected material is imcompatible with the selected machine or configuration."))
|
else:
|
||||||
message.show()
|
self._material_incompatible_message.hide()
|
||||||
|
|
||||||
new_quality_id = old_quality.getId()
|
new_quality_id = old_quality.getId()
|
||||||
quality_type = old_quality.getMetaDataEntry("quality_type")
|
quality_type = old_quality.getMetaDataEntry("quality_type")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue