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...
This commit is contained in:
Ghostkeeper 2019-11-04 11:52:11 +01:00
parent c7c6389897
commit e13108f267
No known key found for this signature in database
GPG key ID: 59A4C0959592C05C

View file

@ -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: