mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
shellDBus: Fix Eval() return value when disabled
Eval() is expected to return a boolean success value and a string result. However when the function is disabled (via the development-tools setting), we return null for the latter which is not a valid string value. Return an empty string instead. https://bugzilla.gnome.org/show_bug.cgi?id=698959
This commit is contained in:
parent
92e5d2b8f5
commit
39426f03e6
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ const GnomeShell = new Lang.Class({
|
|||
*/
|
||||
Eval: function(code) {
|
||||
if (!global.settings.get_boolean('development-tools'))
|
||||
return [false, null];
|
||||
return [false, ''];
|
||||
|
||||
let returnValue;
|
||||
let success;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue