fix(ags): set transition on windows everytime they open
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
244fd6daad
commit
aa7b215055
1 changed files with 3 additions and 3 deletions
|
@ -98,9 +98,6 @@ export class PopupWindow<
|
||||||
App.openWindow(`win-${name}`);
|
App.openWindow(`win-${name}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure Hyprland got the message
|
|
||||||
this.transition = transition;
|
|
||||||
|
|
||||||
// This connection should always run only once
|
// This connection should always run only once
|
||||||
App.disconnect(id);
|
App.disconnect(id);
|
||||||
});
|
});
|
||||||
|
@ -113,6 +110,9 @@ export class PopupWindow<
|
||||||
|
|
||||||
this.hook(App, (_, currentName, isOpen) => {
|
this.hook(App, (_, currentName, isOpen) => {
|
||||||
if (currentName === `win-${name}`) {
|
if (currentName === `win-${name}`) {
|
||||||
|
// Make sure we have the right animation
|
||||||
|
this.transition = transition;
|
||||||
|
|
||||||
if (isOpen) {
|
if (isOpen) {
|
||||||
this.on_open(this);
|
this.on_open(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue