mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 23:59:01 +08:00
Added message when incompatbile material is selected
CURA-2271
This commit is contained in:
parent
ec587eb0dd
commit
2441275f29
@ -531,6 +531,12 @@ class MachineManager(QObject):
|
|||||||
|
|
||||||
containers[0].nameChanged.connect(self._onMaterialNameChanged)
|
containers[0].nameChanged.connect(self._onMaterialNameChanged)
|
||||||
|
|
||||||
|
if containers[0].getMetaDataEntry("compatible") == False:
|
||||||
|
message = Message(catalog.i18nc("@info:status",
|
||||||
|
"The selected material is imcompatible with the selected machine or configuration."))
|
||||||
|
message.show()
|
||||||
|
|
||||||
|
|
||||||
if old_quality:
|
if old_quality:
|
||||||
if old_quality_changes:
|
if old_quality_changes:
|
||||||
new_quality = self._updateQualityChangesContainer(old_quality.getMetaDataEntry("quality_type"), old_quality_changes.getMetaDataEntry("name"))
|
new_quality = self._updateQualityChangesContainer(old_quality.getMetaDataEntry("quality_type"), old_quality_changes.getMetaDataEntry("name"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user