🔧 Make class name unique

This commit is contained in:
Simon Schneegans
2022-06-09 08:29:04 +02:00
parent 3360b45c18
commit 03a6d9263a
+3 -3
View File
@@ -17,7 +17,7 @@ const blacklist = [
"ksplashqml ksplashqml" "ksplashqml ksplashqml"
]; ];
class Effect { class %NICK%Effect {
constructor() { constructor() {
effect.configChanged.connect(this.loadConfig.bind(this)); effect.configChanged.connect(this.loadConfig.bind(this));
effect.animationEnded.connect(this.cleanupForcedRoles.bind(this)); effect.animationEnded.connect(this.cleanupForcedRoles.bind(this));
@@ -121,7 +121,7 @@ class Effect {
if (effects.hasActiveFullScreenEffect) { if (effects.hasActiveFullScreenEffect) {
return; return;
} }
if (!Effect.isScaleWindow(window)) { if (!%NICK%Effect.isScaleWindow(window)) {
return; return;
} }
if (!window.visible || window.skipsCloseAnimation) { if (!window.visible || window.skipsCloseAnimation) {
@@ -168,4 +168,4 @@ class Effect {
} }
} }
new Effect(); new %NICK%Effect();