mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 08:14:48 +02:00
Close directory window after domain change
This commit is contained in:
parent
01b1e9c4ed
commit
a4885ff38c
1 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,10 @@ var directory = (function () {
|
|||
}
|
||||
}
|
||||
|
||||
function onDomainChanged() {
|
||||
directoryWindow.setVisible(false);
|
||||
}
|
||||
|
||||
function onScriptUpdate() {
|
||||
var oldViewport = viewport;
|
||||
|
||||
|
@ -74,6 +78,7 @@ var directory = (function () {
|
|||
updateButtonPosition();
|
||||
|
||||
Controller.mousePressEvent.connect(onMousePressEvent);
|
||||
Window.domainChanged.connect(onDomainChanged);
|
||||
|
||||
Script.update.connect(onScriptUpdate);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue