nixos-gui:

- Reduce the number of call the nix-instantiate.
- Improve the option panel, show the name, type, description, value,
example, default value, declarations and definitions files.

svn path=/nixos/trunk/; revision=26951
This commit is contained in:
Nicolas Pierron 2011-04-24 15:30:30 +00:00
parent 66eed7681d
commit 97b39bd17c
4 changed files with 225 additions and 55 deletions

View file

@ -188,10 +188,19 @@ OptionView.prototype = {
opt.load();
if (opt.isOption)
opts.push(opt);
// FIXME: no need to make things slowing down, because our current
// callback do not handle multiple option display.
if (!opts.empty)
break;
}
// FIXME: no need to make things slowing down, because our current
// callback do not handle multiple option display.
if (!opts.empty)
break;
}
if (opts.lenght != 0)
if (!opts.empty)
this.selCallback(opts);
},