After resetting the custom settings the quality slider did not update selected value

CURA-6028
This commit is contained in:
Aleksei S 2018-12-14 16:17:05 +01:00
parent b70a4ae0a2
commit 9146a775a4
2 changed files with 17 additions and 6 deletions

View file

@ -39,7 +39,17 @@ Item
{
target: Cura.QualityProfilesDropDownMenuModel
onItemsChanged: qualityModel.update()
onDataChanged: qualityModel.update()
onDataChanged:
{
// If a custom profile is selected and then a user decides to change any of setting the slider should show
// the reset button. After clicking the reset button the QualityProfilesDropDownMenuModel(ListModel) is
// updated before the property isProfileCustomized is called to update.
if (Cura.SimpleModeSettingsManager.isProfileCustomized)
{
Cura.SimpleModeSettingsManager.updateIsProfileUserCreated()
}
qualityModel.update()
}
}
Connections {