mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-17 15:09:26 +03:00
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:
parent
66eed7681d
commit
97b39bd17c
4 changed files with 225 additions and 55 deletions
|
@ -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);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue