Fix old maximize not being destroyed

This commit is contained in:
Corentin Noël 2018-06-03 01:57:53 +01:00 committed by Rico Tzschichholz
parent 48d63995b9
commit 96f7799533

View File

@ -984,10 +984,13 @@ namespace Gala
old_actor.opacity = 0; old_actor.opacity = 0;
old_actor.restore_easing_state (); old_actor.restore_easing_state ();
old_actor.get_transition ("x").stopped.connect (() => { ulong maximize_old_handler_id = 0UL;
maximize_old_handler_id = old_actor.transitions_completed.connect (() => {
old_actor.disconnect (maximize_old_handler_id);
old_actor.destroy (); old_actor.destroy ();
actor.set_translation (0.0f, 0.0f, 0.0f); actor.set_translation (0.0f, 0.0f, 0.0f);
}); });
old_actor.restore_easing_state (); old_actor.restore_easing_state ();
actor.set_pivot_point (0.0f, 0.0f); actor.set_pivot_point (0.0f, 0.0f);