mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 23:36:41 +02:00
Merge pull request #11482 from highfidelity/bug/edit.js-opendialog-callback-stack-keeps-growing
Bugfix: edit.js dialog callback events stacking up
This commit is contained in:
commit
2ec2203ffa
1 changed files with 2 additions and 0 deletions
|
@ -1474,6 +1474,8 @@ function onFileSaveChanged(filename) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onFileOpenChanged(filename) {
|
function onFileOpenChanged(filename) {
|
||||||
|
// disconnect the event, otherwise the requests will stack up
|
||||||
|
Window.openFileChanged.disconnect(onFileOpenChanged);
|
||||||
var importURL = null;
|
var importURL = null;
|
||||||
if (filename !== "") {
|
if (filename !== "") {
|
||||||
importURL = "file:///" + filename;
|
importURL = "file:///" + filename;
|
||||||
|
|
Loading…
Reference in a new issue