fix(ags): set transition on windows everytime they open
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-04-16 08:14:58 -04:00
parent 244fd6daad
commit aa7b215055

View file

@ -98,9 +98,6 @@ export class PopupWindow<
App.openWindow(`win-${name}`);
}
// Make sure Hyprland got the message
this.transition = transition;
// This connection should always run only once
App.disconnect(id);
});
@ -113,6 +110,9 @@ export class PopupWindow<
this.hook(App, (_, currentName, isOpen) => {
if (currentName === `win-${name}`) {
// Make sure we have the right animation
this.transition = transition;
if (isOpen) {
this.on_open(this);
}