From 5de308792f951f74bdb2e4a2b496af10e2a89652 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 26 Jan 2023 20:33:58 +0200 Subject: [PATCH] effects/fade: Remove hidden FadeWindows option Enable/disable the fade effect in system settings instead. --- src/effects/fade/package/contents/code/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/effects/fade/package/contents/code/main.js b/src/effects/fade/package/contents/code/main.js index ce0d7a67bc..b0c3fc4a3e 100644 --- a/src/effects/fade/package/contents/code/main.js +++ b/src/effects/fade/package/contents/code/main.js @@ -31,7 +31,6 @@ class FadeEffect { loadConfig() { this.fadeInTime = animationTime(effect.readConfig("FadeInTime", 150)); this.fadeOutTime = animationTime(effect.readConfig("FadeOutTime", 150)) * 4; - this.fadeWindows = effect.readConfig("FadeWindows", true); // TODO Plasma 6: Remove it. } static isFadeWindow(w) { @@ -62,7 +61,7 @@ class FadeEffect { if (effects.hasActiveFullScreenEffect) { return; } - if (!this.fadeWindows || !FadeEffect.isFadeWindow(window)) { + if (!FadeEffect.isFadeWindow(window)) { return; } if (window.fadeOutAnimation) { @@ -82,7 +81,7 @@ class FadeEffect { if (effects.hasActiveFullScreenEffect) { return; } - if (!this.fadeWindows || window.skipsCloseAnimation || !FadeEffect.isFadeWindow(window)) { + if (window.skipsCloseAnimation || !FadeEffect.isFadeWindow(window)) { return; } window.fadeOutAnimation = animate({