extensionDownloader: Only check updates for user extensions

System extensions cannot be updated through the website, so don't
even try.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/945
This commit is contained in:
Florian Müllner 2020-01-22 15:42:06 +01:00 committed by verdre
parent 9c785ca6b6
commit cbc9bc5fc6

View File

@ -120,7 +120,10 @@ function downloadExtensionUpdate(uuid) {
function checkForUpdates() { function checkForUpdates() {
let metadatas = {}; let metadatas = {};
Main.extensionManager.getUuids().forEach(uuid => { Main.extensionManager.getUuids().forEach(uuid => {
metadatas[uuid] = Main.extensionManager.lookup(uuid).metadata; let extension = Main.extensionManager.lookup(uuid);
if (extension.type !== ExtensionUtils.ExtensionType.PER_USER)
return;
metadatas[uuid] = extension.metadata;
}); });
let params = { shell_version: Config.PACKAGE_VERSION, let params = { shell_version: Config.PACKAGE_VERSION,