From 11f5f0298d36a6fc2cf3a9fca37c81df858ae989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Wed, 25 Sep 2013 21:57:44 +0200 Subject: [PATCH] workaround bug #321897 by multiplying fadeout time with 4 instead of just altering the default value It seems the value is actually written for some ppl. Worse: former patch didn't actually work as expected anymore CCBUG: 321897 --- effects/fade/package/contents/code/main.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/effects/fade/package/contents/code/main.js b/effects/fade/package/contents/code/main.js index 5631e6c3e0..74e39f1a35 100644 --- a/effects/fade/package/contents/code/main.js +++ b/effects/fade/package/contents/code/main.js @@ -34,7 +34,7 @@ function isLoginWindow(w) { var fadeInTime, fadeOutTime, fadeWindows; function loadConfig() { fadeInTime = animationTime(effect.readConfig("FadeInTime", 150)); - fadeOutTime = animationTime(effect.readConfig("FadeOutTime", 600)); + fadeOutTime = animationTime(effect.readConfig("FadeOutTime", 150)) * 4; fadeWindows = effect.readConfig("FadeWindows", true); } loadConfig(); @@ -48,6 +48,14 @@ effects.windowAdded.connect(function(w) { }); effects.windowClosed.connect(function(w) { if (fadeWindows && isFadeWindow(w)) { - effect.animate(w, Effect.Opacity, fadeOutTime, 0.0, "", QEasingCurve.OutQuart); + animate({ + window: w, + duration: fadeOutTime, + animations: [{ + type: Effect.Opacity, + curve: QEasingCurve.OutQuart, + to: 0.0 + }] + }); } });