From 41f0e133a9e8c2cdf6d6cf3ebed7dc8ec7e1c871 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Mon, 13 Feb 2012 15:22:55 +0100 Subject: [PATCH] extension-prefs-tool: fix sensitivity of combobox items Extensions are load asynchronously, and they're availability can change at times, so sensitivity must sometimes be restored to true. https://bugzilla.gnome.org/show_bug.cgi?id=670006 --- js/extensionPrefs/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/extensionPrefs/main.js b/js/extensionPrefs/main.js index 68603d77e..622d0ad26 100644 --- a/js/extensionPrefs/main.js +++ b/js/extensionPrefs/main.js @@ -70,8 +70,7 @@ const Application = new Lang.Class({ _setExtensionInsensitive: function(layout, cell, model, iter, data) { let uuid = model.get_value(iter, 0); - if (!this._extensionAvailable(uuid)) - cell.set_sensitive(false); + cell.set_sensitive(this._extensionAvailable(uuid)); }, _getExtensionPrefsModule: function(extension) {