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
This commit is contained in:
parent
b7e828fa3c
commit
ea5732fe6f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user