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.
This commit is contained in:
Siegfried-Angel Gevatter Pujals 2009-09-25 20:10:45 +02:00
parent ec92bfba14
commit 3ffc510be7

View File

@ -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');