Add seperate preference for plugin notifications check

CURA-7689
This commit is contained in:
Jaime van Kessel 2021-08-03 13:07:11 +02:00
parent b006d9111f
commit be59e701f2
2 changed files with 22 additions and 4 deletions

View file

@ -120,6 +120,8 @@ UM.PreferencesPage
checkUpdatesCheckbox.checked = boolCheck(UM.Preferences.getValue("info/automatic_update_check"))
UM.Preferences.resetPreference("info/latest_update_source")
UM.Preferences.resetPreference("info/automatic_plugin_update_check")
pluginNotificationsUpdateCheckbox.checked = boolCheck(UM.Preferences.getValue("info/automatic_plugin_update_check"))
}
ScrollView
@ -820,12 +822,25 @@ UM.PreferencesPage
onClicked: UM.Preferences.setValue("info/latest_update_source", "beta")
}
}
UM.TooltipArea
{
width: childrenRect.width
height: visible ? childrenRect.height : 0
text: catalog.i18nc("@info:tooltip","Should anonymous data about your print be sent to Ultimaker? Note, no models, IP addresses or other personally identifiable information is sent or stored.")
text: catalog.i18nc("@info:tooltip", "Should an automatic check for new plugins be done every time Cura is started? It is highly recommended that you do not disable this!")
CheckBox
{
id: pluginNotificationsUpdateCheckbox
text: catalog.i18nc("@option:check", "Get notifications for plugin updates")
checked: boolCheck(UM.Preferences.getValue("info/automatic_plugin_update_check"))
onCheckedChanged: UM.Preferences.setValue("info/automatic_plugin_update_check", checked)
}
}
UM.TooltipArea
{
width: childrenRect.width
height: visible ? childrenRect.height : 0
text: catalog.i18nc("@info:tooltip", "Should anonymous data about your print be sent to Ultimaker? Note, no models, IP addresses or other personally identifiable information is sent or stored.")
CheckBox
{