Merge branch 'feature_single_instance_preference' of https://github.com/fieldOfView/Cura

This commit is contained in:
Jaime van Kessel 2020-06-02 14:16:18 +02:00
commit 0885d1a8e2
No known key found for this signature in database
GPG key ID: 3710727397403C91
2 changed files with 21 additions and 0 deletions

View file

@ -72,6 +72,9 @@ UM.PreferencesPage
var defaultTheme = UM.Preferences.getValue("general/theme")
setDefaultTheme(defaultTheme)
UM.Preferences.resetPreference("cura/single_instance")
scaleToFitCheckbox.checked = boolCheck(UM.Preferences.getValue("cura/single_instance"))
UM.Preferences.resetPreference("physics/automatic_push_free")
pushFreeCheckbox.checked = boolCheck(UM.Preferences.getValue("physics/automatic_push_free"))
UM.Preferences.resetPreference("physics/automatic_drop_down")
@ -560,6 +563,21 @@ UM.PreferencesPage
text: catalog.i18nc("@label","Opening and saving files")
}
UM.TooltipArea
{
width: childrenRect.width
height: childrenRect.height
text: catalog.i18nc("@info:tooltip","Should opening files from the desktop or external applications open in the same instance of Cura?")
CheckBox
{
id: singleInstanceCheckbox
text: catalog.i18nc("@option:check","Use a single instance of Cura")
checked: boolCheck(UM.Preferences.getValue("cura/single_instance"))
onCheckedChanged: UM.Preferences.setValue("cura/single_instance", checked)
}
}
UM.TooltipArea
{
width: childrenRect.width