From b028ae56d9ffdb27fd4ee61316c747e1803fe296 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 11 May 2020 14:03:58 +0300 Subject: [PATCH] [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. --- effects/logout/package/contents/code/main.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/effects/logout/package/contents/code/main.js b/effects/logout/package/contents/code/main.js index 8993a9b189..6b7065d3a6 100644 --- a/effects/logout/package/contents/code/main.js +++ b/effects/logout/package/contents/code/main.js @@ -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();