mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Added preference. CURA-3214
This commit is contained in:
parent
a3af887d3f
commit
e5cdc318f7
2 changed files with 28 additions and 1 deletions
|
|
@ -230,6 +230,8 @@ class CuraApplication(QtApplication):
|
||||||
Preferences.getInstance().addPreference("cura/currency", "€")
|
Preferences.getInstance().addPreference("cura/currency", "€")
|
||||||
Preferences.getInstance().addPreference("cura/material_settings", "{}")
|
Preferences.getInstance().addPreference("cura/material_settings", "{}")
|
||||||
|
|
||||||
|
Preferences.getInstance().addPreference("general/auto_slice", True)
|
||||||
|
|
||||||
for key in [
|
for key in [
|
||||||
"dialog_load_path", # dialog_save_path is in LocalFileOutputDevicePlugin
|
"dialog_load_path", # dialog_save_path is in LocalFileOutputDevicePlugin
|
||||||
"dialog_profile_path",
|
"dialog_profile_path",
|
||||||
|
|
|
||||||
|
|
@ -162,6 +162,31 @@ UM.PreferencesPage
|
||||||
width: UM.Theme.getSize("default_margin").width
|
width: UM.Theme.getSize("default_margin").width
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UM.TooltipArea
|
||||||
|
{
|
||||||
|
width: childrenRect.width;
|
||||||
|
height: childrenRect.height;
|
||||||
|
|
||||||
|
text: catalog.i18nc("@info:tooltip","Slice automatically when changing settings.")
|
||||||
|
|
||||||
|
CheckBox
|
||||||
|
{
|
||||||
|
id: autoSliceCheckbox
|
||||||
|
|
||||||
|
checked: boolCheck(UM.Preferences.getValue("general/auto_slice"))
|
||||||
|
onClicked: UM.Preferences.setValue("general/auto_slice", checked)
|
||||||
|
|
||||||
|
text: catalog.i18nc("@option:check","Slice automatically");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
//: Spacer
|
||||||
|
height: UM.Theme.getSize("default_margin").height
|
||||||
|
width: UM.Theme.getSize("default_margin").width
|
||||||
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
font.bold: true
|
font.bold: true
|
||||||
|
|
@ -274,7 +299,7 @@ UM.PreferencesPage
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
font.bold: true
|
font.bold: true
|
||||||
text: catalog.i18nc("@label","Opening files")
|
text: catalog.i18nc("@label","Opening and saving files")
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.TooltipArea {
|
UM.TooltipArea {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue