Add a preference check to enable or disable the experimental feature

This commit is contained in:
Diego Prado Gesto 2019-02-17 19:22:54 +01:00
parent 86c7d3e5ab
commit 3829eb0905
4 changed files with 84 additions and 58 deletions

View file

@ -32,10 +32,7 @@ Button
right: printerTypes.left
verticalCenter: parent.verticalCenter
}
text: {
print("HOLAAAAAAAA", objectItemButton.text)
return objectItemButton.text
}
text: objectItemButton.text
color: UM.Theme.getColor("text")
font: UM.Theme.getFont("medium")
visible: text != ""

View file

@ -741,6 +741,21 @@ UM.PreferencesPage
}
}
UM.TooltipArea
{
width: childrenRect.width
height: childrenRect.height
text: catalog.i18nc("@info:tooltip", "This option enables a panel showing the list of loaded models")
CheckBox
{
id: showListOfFilesCheckbox
text: catalog.i18nc("@option:check", "Show list of loaded models")
checked: boolCheck(UM.Preferences.getValue("cura/show_list_of_files"))
onCheckedChanged: UM.Preferences.setValue("cura/show_list_of_files", checked)
}
}
Connections
{
target: UM.Preferences