mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-14 03:03:13 +08:00
Fix the active quality id
activeQualityId and activeQualityName were not referencing the same profile. activeMaterialName seems to have the correct one. CURA-2271
This commit is contained in:
parent
bf0c6dc1d4
commit
f2e054b449
@ -475,11 +475,11 @@ class MachineManager(QObject):
|
|||||||
|
|
||||||
@pyqtProperty(str, notify=activeQualityChanged)
|
@pyqtProperty(str, notify=activeQualityChanged)
|
||||||
def activeQualityId(self):
|
def activeQualityId(self):
|
||||||
if self._global_container_stack:
|
if self._active_container_stack and self._global_container_stack:
|
||||||
quality = self._global_container_stack.findContainer({"type": "quality_changes"})
|
quality = self._global_container_stack.findContainer({"type": "quality_changes"})
|
||||||
if quality and quality != self._empty_quality_changes_container:
|
if quality and quality != self._empty_quality_changes_container:
|
||||||
return quality.getId()
|
return quality.getId()
|
||||||
quality = self._global_container_stack.findContainer({"type": "quality"})
|
quality = self._active_container_stack.findContainer({"type": "quality"})
|
||||||
if quality:
|
if quality:
|
||||||
return quality.getId()
|
return quality.getId()
|
||||||
return ""
|
return ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user