fix(ags winpopup): pass window to onOpen and onClose
This commit is contained in:
parent
0db1766755
commit
f82df8a551
2 changed files with 5 additions and 5 deletions
|
@ -63,11 +63,11 @@ export default ({
|
|||
rev.revealChild = isOpen;
|
||||
|
||||
if (isOpen) {
|
||||
onOpen(child);
|
||||
onOpen(window);
|
||||
}
|
||||
else {
|
||||
timeout(transitionDuration, () => {
|
||||
onClose(child);
|
||||
onClose(window);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -93,9 +93,9 @@ export default () => {
|
|||
name: 'overview',
|
||||
blur: true,
|
||||
closeOnUnfocus: 'none',
|
||||
onOpen: () => {
|
||||
window.setChild(Overview());
|
||||
window.getChild().getChild().update();
|
||||
onOpen: (win) => {
|
||||
win.setChild(Overview());
|
||||
win.getChild().getChild().update();
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue