fix(ags winpopup): pass window to onOpen and onClose

This commit is contained in:
matt1432 2023-12-12 15:11:00 -05:00
parent 0db1766755
commit f82df8a551
2 changed files with 5 additions and 5 deletions

View file

@ -63,11 +63,11 @@ export default ({
rev.revealChild = isOpen;
if (isOpen) {
onOpen(child);
onOpen(window);
}
else {
timeout(transitionDuration, () => {
onClose(child);
onClose(window);
});
}
}

View file

@ -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();
},
});