Simplify default quality reset

This commit is contained in:
Lipu Fei 2018-03-15 17:00:45 +01:00
parent 3497736c88
commit 3bb0a481f1
2 changed files with 11 additions and 13 deletions

View file

@ -1269,6 +1269,15 @@ class MachineManager(QObject):
if not no_dialog and self.hasUserSettings and Preferences.getInstance().getValue("cura/active_mode") == 1:
self._application.discardOrKeepProfileChanges()
@pyqtSlot()
def clearQualityChangesGroup(self):
with postponeSignals(*self._getContainerChangedSignals(), compress = CompressTechnique.CompressPerParameterValue):
self._setQualityGroup(self._current_quality_group)
# See if we need to show the Discard or Keep changes screen
if self.hasUserSettings and Preferences.getInstance().getValue("cura/active_mode") == 1:
self._application.discardOrKeepProfileChanges()
@pyqtProperty(QObject, fset = setQualityChangesGroup, notify = activeQualityChangesGroupChanged)
def activeQualityChangesGroup(self):
return self._current_quality_changes_group