1
0
Fork 0

only open popup if there's something to choose from

This commit is contained in:
mfranz 2009-01-31 20:10:47 +00:00
parent 8bb50c1871
commit de80ed4b1c

View file

@ -79,6 +79,8 @@
<binding>
<command>nasal</command>
<script>
if (size(view.model_view_handler.list) &lt;= 1)
return;
var isopen = !!getprop("sim/gui/dialogs/model-view-select/open");
var toggle = isopen ? "dialog-close" : "dialog-show";
fgcommand(toggle, props.Node.new({ "dialog-name": "model-view-select" }));