CURA-3397 Add options for profile override dialog

This commit is contained in:
Lipu Fei 2017-03-02 18:02:01 +01:00
parent 7997ae55ea
commit 67b57129ed
3 changed files with 68 additions and 1 deletions

View file

@ -129,6 +129,27 @@ UM.Dialog
model: base.changesModel
}
Item
{
anchors.right: parent.right
anchors.left: parent.left
anchors.margins: UM.Theme.getSize("default_margin").width
height:childrenRect.height
ComboBox
{
id: discardOrKeepProfileChangesDropDownButton
model: [
catalog.i18nc("@option:discardOrKeep", "Always ask me this"),
catalog.i18nc("@option:discardOrKeep", "Discard and never ask again"),
catalog.i18nc("@option:discardOrKeep", "Keep and never ask again")
]
width: 300
currentIndex: UM.Preferences.getValue("cura/choice_on_profile_override")
onCurrentIndexChanged: UM.Preferences.setValue("cura/choice_on_profile_override", currentIndex)
}
}
Item
{
anchors.right: parent.right