🔧 Disconnect from transitions-completed

This commit is contained in:
Simon Schneegans
2022-01-28 07:54:20 +01:00
parent f87a0a649b
commit bcb7619d37
+3 -1
View File
@@ -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