mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 13:17:51 -06:00
Use the active container stack for determining activeQualityVariantId
Contributes to CURA-2271
This commit is contained in:
parent
62d6b1fcdd
commit
c550dd5072
1 changed files with 2 additions and 2 deletions
|
@ -829,8 +829,8 @@ class MachineManager(QObject):
|
|||
# \sa getQualityVariantId
|
||||
@pyqtProperty(str, notify = activeVariantChanged)
|
||||
def activeQualityVariantId(self):
|
||||
if self._global_container_stack:
|
||||
variant = self._global_container_stack.findContainer({"type": "variant"})
|
||||
if self._active_container_stack:
|
||||
variant = self._active_container_stack.findContainer({"type": "variant"})
|
||||
if variant:
|
||||
return self.getQualityVariantId(self._global_container_stack.getBottom(), variant)
|
||||
return ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue