[effects/cubeslide] Slightly improve readability of the code

This commit is contained in:
Igor Poboiko 2018-09-14 12:52:32 +03:00
parent 9043c092f9
commit 525e96cc18

View file

@ -518,12 +518,14 @@ void CubeSlideEffect::startAnimation() {
}
void CubeSlideEffect::slotWindowAdded(EffectWindow* w) {
if (!isActive() || shouldAnimate(w)) {
if (!isActive()) {
return;
}
staticWindows.insert(w);
w->setData(WindowForceBlurRole, QVariant(true));
w->setData(WindowForceBackgroundContrastRole, QVariant(true));
if (!shouldAnimate(w)) {
staticWindows.insert(w);
w->setData(WindowForceBlurRole, QVariant(true));
w->setData(WindowForceBackgroundContrastRole, QVariant(true));
}
}
void CubeSlideEffect::slotWindowDeleted(EffectWindow* w) {