From e13108f267fc0aef40d6674859b74767d4e4f279 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 4 Nov 2019 11:52:11 +0100 Subject: [PATCH] Don't request updates if update checking is disabled I remember remarking this at one point but then it was said that we'd only need to implement the 'Minimum Viable Product' for the Toolbox. Well this is what happens then... --- plugins/Toolbox/src/Toolbox.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/Toolbox/src/Toolbox.py b/plugins/Toolbox/src/Toolbox.py index 08b6c80b1d..869ac6ab5e 100644 --- a/plugins/Toolbox/src/Toolbox.py +++ b/plugins/Toolbox/src/Toolbox.py @@ -191,8 +191,9 @@ class Toolbox(QObject, Extension): "packages": QUrl("{base_url}/packages".format(base_url = self._api_url)) } - # Request the latest and greatest! - self._fetchPackageData() + if CuraApplication.getInstance().getPreferences().getValue("info/automatic_update_check"): + # Request the latest and greatest! + self._fetchPackageData() def _fetchPackageData(self): # Create the network manager: