1
0
Fork 0

- dialog-close for the original (non-cloned) dialog instance

- simplify close() function for cloned instances (ignore errors via call())
This commit is contained in:
mfranz 2007-06-14 23:09:01 +00:00
parent e3936992d5
commit 7518aa645b

View file

@ -87,6 +87,9 @@
<command>nasal</command> <command>nasal</command>
<script>ok()</script> <script>ok()</script>
</binding> </binding>
<binding>
<command>dialog-close</command>
</binding>
</button> </button>
</group> </group>
@ -194,9 +197,8 @@
} }
var close = func { var close = func {
if (contains(globals.gui, "file_selector") var err = [];
and contains(gui.file_selector.instance, dlgname)) call(func { gui.FileSelector.instance[dlgname].close() }, nil, err);
gui.file_selector.instance[dlgname].close();
} }
var ok = func { var ok = func {