From 3ffc510be76eabe0c0c1e39b640302dcb36ffdaa Mon Sep 17 00:00:00 2001 From: Siegfried-Angel Gevatter Pujals Date: Fri, 25 Sep 2009 20:10:45 +0200 Subject: [PATCH] runDialog.js: really update the enableInternalCommands when the key changes The run dialog uses the "development_tools" gconf key to determine whether funcions like "lg" or "restart" should be enabled, but it failed to notice it on the run when said key changed. This commit fixes this. --- js/ui/runDialog.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js index d6d7994ad..4ffeb0f9f 100644 --- a/js/ui/runDialog.js +++ b/js/ui/runDialog.js @@ -34,9 +34,8 @@ RunDialog.prototype = { this._isOpen = false; let gconf = Shell.GConf.get_default(); - gconf.connect('changed', Lang.bind(this, function (gconf, key) { - if (key == 'development_tools') - this._enableInternalCommands = gconf.get_bool('development_tools'); + gconf.connect('changed::development_tools', Lang.bind(this, function () { + this._enableInternalCommands = gconf.get_boolean('development_tools'); })); this._enableInternalCommands = gconf.get_boolean('development_tools');