From ea5732fe6f40e9817cb434c2feb56a0f0a000fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 22 Jan 2020 16:53:32 +0100 Subject: [PATCH] extensionDownloader: Include version validation in update check The extensions website will consider the setting to find the best suitable extension version, so we should transmit the parameter for better results. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/945 --- js/ui/extensionDownloader.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/js/ui/extensionDownloader.js b/js/ui/extensionDownloader.js index c09359eab..abaa644e0 100644 --- a/js/ui/extensionDownloader.js +++ b/js/ui/extensionDownloader.js @@ -128,8 +128,13 @@ function checkForUpdates() { metadatas[uuid] = extension.metadata; }); - let params = { shell_version: Config.PACKAGE_VERSION, - installed: JSON.stringify(metadatas) }; + let versionCheck = global.settings.get_boolean( + 'disable-extension-version-validation'); + let params = { + shell_version: Config.PACKAGE_VERSION, + installed: JSON.stringify(metadatas), + disable_version_validation: `${versionCheck}`, + }; let url = REPOSITORY_URL_UPDATE; let message = Soup.form_request_new_from_hash('GET', url, params);