Fix visibilty preset update

CURA-5088
This commit is contained in:
Lipu Fei 2018-03-19 14:13:55 +01:00
parent 90fa49b6a1
commit f0dc138b37
2 changed files with 7 additions and 12 deletions

View file

@ -78,15 +78,6 @@ UM.PreferencesPage
{
definitionsModel.setAllExpandedVisible(false)
}
// After change set "Custom" option
// If already "Custom" then don't do nothing
if (visibilityPreset.currentIndex != visibilityPreset.model.count - 1)
{
visibilityPreset.currentIndex = visibilityPreset.model.count - 1
UM.Preferences.setValue("cura/active_setting_visibility_preset", visibilityPreset.model.getItem(visibilityPreset.currentIndex).id)
}
}
}
}