mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 04:29:00 +08:00
Use the active container stack for determining activeQualityVariantId
Contributes to CURA-2271
This commit is contained in:
parent
62d6b1fcdd
commit
c550dd5072
@ -829,8 +829,8 @@ class MachineManager(QObject):
|
|||||||
# \sa getQualityVariantId
|
# \sa getQualityVariantId
|
||||||
@pyqtProperty(str, notify = activeVariantChanged)
|
@pyqtProperty(str, notify = activeVariantChanged)
|
||||||
def activeQualityVariantId(self):
|
def activeQualityVariantId(self):
|
||||||
if self._global_container_stack:
|
if self._active_container_stack:
|
||||||
variant = self._global_container_stack.findContainer({"type": "variant"})
|
variant = self._active_container_stack.findContainer({"type": "variant"})
|
||||||
if variant:
|
if variant:
|
||||||
return self.getQualityVariantId(self._global_container_stack.getBottom(), variant)
|
return self.getQualityVariantId(self._global_container_stack.getBottom(), variant)
|
||||||
return ""
|
return ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user