Replace isProfileUserCreated with hasCustomQuality

CURA-6028
This commit is contained in:
Lipu Fei 2018-12-18 08:55:55 +01:00
parent 08458df873
commit 6017c2b4d2
3 changed files with 10 additions and 49 deletions

View file

@ -1529,6 +1529,10 @@ class MachineManager(QObject):
def activeQualityChangesGroup(self) -> Optional["QualityChangesGroup"]:
return self._current_quality_changes_group
@pyqtProperty(bool, notify = activeQualityChangesGroupChanged)
def hasCustomQuality(self) -> bool:
return self._current_quality_changes_group is not None
@pyqtProperty(str, notify = activeQualityGroupChanged)
def activeQualityOrQualityChangesName(self) -> str:
name = empty_quality_container.getName()