Use globalProfileId to check if we need to show changed settings

CURA-2690
This commit is contained in:
Jaime van Kessel 2016-10-15 17:05:55 +02:00
parent 4769b22138
commit ff24def63c
2 changed files with 14 additions and 3 deletions

View file

@ -514,6 +514,17 @@ class MachineManager(QObject):
return quality.getId()
return ""
@pyqtProperty(str, notify=activeQualityChanged)
def globalQualityId(self):
if self._global_container_stack:
quality = self._global_container_stack.findContainer({"type": "quality_changes"})
if quality and quality != self._empty_quality_changes_container:
return quality.getId()
quality = self._global_container_stack.findContainer({"type": "quality"})
if quality:
return quality.getId()
return ""
@pyqtProperty(str, notify = activeQualityChanged)
def activeQualityType(self):
if self._active_container_stack: