diff --git a/extension.js b/extension.js index 9fdb8bc..cfa8dfc 100644 --- a/extension.js +++ b/extension.js @@ -416,10 +416,12 @@ class Extension { } // Once the transitions are finished, we restore the original actor size. - actor.connect('transitions-completed', () => { + const connectionID = actor.connect('transitions-completed', () => { actor.scale_x = 1.0; actor.scale_y = 1.0; actor.opacity = forOpening ? 1.0 : 0.0; + + actor.disconnect(connectionID); }); // -------------------------------------------------------------------- add the shader