mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 21:09:00 +08:00
Fix showing/hiding variant/material dropdowns when switching between machines
CURA-340
This commit is contained in:
parent
c592d71051
commit
534a4adc8e
@ -477,14 +477,14 @@ class MachineManagerModel(QObject):
|
||||
@pyqtProperty(bool, notify = globalContainerChanged)
|
||||
def hasMaterials(self):
|
||||
if self._active_container_stack:
|
||||
return bool(self._active_container_stack.getMetaDataEntry("has_materials", False))
|
||||
return bool(self._global_container_stack.getMetaDataEntry("has_materials", False))
|
||||
|
||||
return False
|
||||
|
||||
@pyqtProperty(bool, notify = globalContainerChanged)
|
||||
def hasVariants(self):
|
||||
if self._active_container_stack:
|
||||
return bool(self._active_container_stack.getMetaDataEntry("has_variants", False))
|
||||
return bool(self._global_container_stack.getMetaDataEntry("has_variants", False))
|
||||
|
||||
return False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user