- 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>
|
<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 {
|
||||||
|
|
Loading…
Reference in a new issue