diff --git a/plugins/Toolbox/src/Toolbox.py b/plugins/Toolbox/src/Toolbox.py index 625289635a..c238d3f009 100644 --- a/plugins/Toolbox/src/Toolbox.py +++ b/plugins/Toolbox/src/Toolbox.py @@ -183,12 +183,15 @@ class Toolbox(QObject, Extension): self._application.getCuraAPI().account.loginStateChanged.connect(self._restart) + preferences = CuraApplication.getInstance().getPreferences() + + preferences.addPreference("info/automatic_plugin_update_check", True) + # On boot we check which packages have updates. - if CuraApplication.getInstance().getPreferences().getValue("info/automatic_update_check") and len(installed_package_ids_with_versions) > 0: + if preferences.getValue("info/automatic_plugin_update_check") and len(installed_package_ids_with_versions) > 0: # Request the latest and greatest! self._makeRequestByType("updates") - def _fetchPackageData(self) -> None: self._makeRequestByType("packages") self._makeRequestByType("authors") diff --git a/resources/qml/Preferences/GeneralPage.qml b/resources/qml/Preferences/GeneralPage.qml index e35b8c22f0..aa8339aa63 100644 --- a/resources/qml/Preferences/GeneralPage.qml +++ b/resources/qml/Preferences/GeneralPage.qml @@ -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 {