Commit b028ae56 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

[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.
parent 9d4c8fda
......@@ -75,9 +75,7 @@ var logoutEffect = {
init: function () {
logoutEffect.loadConfig();
effects.windowAdded.connect(logoutEffect.opened);
effects.windowShown.connect(logoutEffect.opened);
effects.windowClosed.connect(logoutEffect.closed);
effects.windowHidden.connect(logoutEffect.closed);
}
};
logoutEffect.init();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment