mirror of
https://github.com/elementary/gala.git
synced 2024-12-25 10:13:04 +03:00
Fix old maximize not being destroyed
This commit is contained in:
parent
48d63995b9
commit
96f7799533
@ -984,10 +984,13 @@ namespace Gala
|
||||
old_actor.opacity = 0;
|
||||
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 ();
|
||||
actor.set_translation (0.0f, 0.0f, 0.0f);
|
||||
});
|
||||
|
||||
old_actor.restore_easing_state ();
|
||||
|
||||
actor.set_pivot_point (0.0f, 0.0f);
|
||||
|
Loading…
Reference in New Issue
Block a user