diff --git a/devices/wim/config/ags/js/misc/popup.js b/devices/wim/config/ags/js/misc/popup.js index d6ddf29..98b78db 100644 --- a/devices/wim/config/ags/js/misc/popup.js +++ b/devices/wim/config/ags/js/misc/popup.js @@ -1,6 +1,7 @@ import App from 'resource:///com/github/Aylur/ags/app.js'; import { Revealer, Box, Window } from 'resource:///com/github/Aylur/ags/widget.js'; +import { timeout } from 'resource:///com/github/Aylur/ags/utils.js'; export default ({ @@ -57,7 +58,9 @@ export default ({ onOpen(child); } else { - onClose(child); + timeout(transitionDuration, () => { + onClose(child); + }); } } }]], @@ -72,6 +75,7 @@ export default ({ window.getChild = () => window.child.children[0].child; window.setChild = (newChild) => { window.child.children[0].child = newChild; + window.child.children[0].show_all(); }; // This is for my custom pointers.js