- dialog-close for the original (non-cloned) dialog instance
- simplify close() function for cloned instances (ignore errors via call())
This commit is contained in:
parent
e3936992d5
commit
7518aa645b
1 changed files with 5 additions and 3 deletions
|
@ -87,6 +87,9 @@
|
|||
<command>nasal</command>
|
||||
<script>ok()</script>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
</button>
|
||||
</group>
|
||||
|
||||
|
@ -194,9 +197,8 @@
|
|||
}
|
||||
|
||||
var close = func {
|
||||
if (contains(globals.gui, "file_selector")
|
||||
and contains(gui.file_selector.instance, dlgname))
|
||||
gui.file_selector.instance[dlgname].close();
|
||||
var err = [];
|
||||
call(func { gui.FileSelector.instance[dlgname].close() }, nil, err);
|
||||
}
|
||||
|
||||
var ok = func {
|
||||
|
|
Loading…
Reference in a new issue