Minor fixes for customized profile in simple mode

CURA-4333

- Update comments
- Disable the quality slider when there is a customized profile
This commit is contained in:
Lipu Fei 2017-10-16 13:26:26 +02:00
parent 9b8dc9bf55
commit fae65d7b83
2 changed files with 3 additions and 2 deletions

View file

@ -47,7 +47,8 @@ class SimpleModeSettingsManager(QObject):
self._is_profile_customized = has_customized_user_settings
self.isProfileCustomizedChanged.emit()
# A list of settings that will be ignored when check whether there is any custom settings.
# These are the settings included in the Simple ("Recommended") Mode, so only when the other settings have been
# changed, we consider it as a user customized profile in the Simple ("Recommended") Mode.
__ignored_custom_setting_keys = ["support_enable",
"infill_sparse_density",
"gradual_infill_steps",

View file

@ -260,7 +260,7 @@ Item
id: qualitySlider
height: UM.Theme.getSize("sidebar_margin").height
anchors.bottom: speedSlider.bottom
enabled: qualityModel.availableTotalTicks > 0
enabled: qualityModel.availableTotalTicks > 0 && !Cura.SimpleModeSettingsManager.isProfileCustomized
visible: qualityModel.totalTicks > 0
updateValueWhileDragging : false