[effects/cubeslide] Slightly improve readability of the code
This commit is contained in:
parent
9043c092f9
commit
525e96cc18
1 changed files with 6 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue