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; rev.revealChild = isOpen;
if (isOpen) { if (isOpen) {
onOpen(child); onOpen(window);
} }
else { else {
timeout(transitionDuration, () => { timeout(transitionDuration, () => {
onClose(child); onClose(window);
}); });
} }
} }

View file

@ -93,9 +93,9 @@ export default () => {
name: 'overview', name: 'overview',
blur: true, blur: true,
closeOnUnfocus: 'none', closeOnUnfocus: 'none',
onOpen: () => { onOpen: (win) => {
window.setChild(Overview()); win.setChild(Overview());
window.getChild().getChild().update(); win.getChild().getChild().update();
}, },
}); });