From d209bc69b6c71e463816a03b41cb6522e4082365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 6 Sep 2014 17:21:52 +0200 Subject: [PATCH] extensionPrefs: Remove version check from extensionAvailable() It is confusing to treat outdated extensions as if they didn't exist in some places, but like any other extensions elsewhere. In particular gnome-tweak-tool still allows to launch prefs for them while making it clear to users that the extension will not work - opening the list of installed extensions in that case is unexpected and confusing. Just remove the version check for now, we will soon follow tweak-tool and use it to disable the extension switch instead. https://bugzilla.gnome.org/show_bug.cgi?id=736185 --- js/extensionPrefs/main.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/js/extensionPrefs/main.js b/js/extensionPrefs/main.js index 88e639acb..f56e5b6d4 100644 --- a/js/extensionPrefs/main.js +++ b/js/extensionPrefs/main.js @@ -59,14 +59,10 @@ const Application = new Lang.Class({ _extensionAvailable: function(uuid) { let extension = ExtensionUtils.extensions[uuid]; - let checkVersion = !this._settings.get_boolean('disable-extension-version-validation'); if (!extension) return false; - if (checkVersion && ExtensionUtils.isOutOfDate(extension)) - return false; - if (!extension.dir.get_child('prefs.js').query_exists(null)) return false;