mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
Add a preference check to enable or disable the experimental feature
This commit is contained in:
parent
86c7d3e5ab
commit
3829eb0905
4 changed files with 84 additions and 58 deletions
|
@ -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 != ""
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue