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
This commit is contained in:
parent
61f1bcc991
commit
11f5f0298d
1 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
}]
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue