[effects/logout] Start the animation on only windowAdded or windowClosed
windowShown and windowHidden are emitted when the window becomes visible and hidden, respectively. For example, that can be the case when the window has been minimized or unminimized. We have to start animations only when windowAdded or windowClosed has been emitted.
This commit is contained in:
parent
9d4c8fda09
commit
b028ae56d9
1 changed files with 0 additions and 2 deletions
|
@ -75,9 +75,7 @@ var logoutEffect = {
|
||||||
init: function () {
|
init: function () {
|
||||||
logoutEffect.loadConfig();
|
logoutEffect.loadConfig();
|
||||||
effects.windowAdded.connect(logoutEffect.opened);
|
effects.windowAdded.connect(logoutEffect.opened);
|
||||||
effects.windowShown.connect(logoutEffect.opened);
|
|
||||||
effects.windowClosed.connect(logoutEffect.closed);
|
effects.windowClosed.connect(logoutEffect.closed);
|
||||||
effects.windowHidden.connect(logoutEffect.closed);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
logoutEffect.init();
|
logoutEffect.init();
|
||||||
|
|
Loading…
Reference in a new issue