From bcb7619d3703bee866fe352e9b4db7387bdc2cc5 Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Fri, 28 Jan 2022 07:54:20 +0100 Subject: [PATCH] :wrench: Disconnect from transitions-completed --- extension.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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