opacity transition on WindowIcons can be null on WM startup

This commit is contained in:
Tom Beckmann 2021-12-24 12:19:01 +01:00 committed by José Expósito
parent fcd7d35f3d
commit 8a433d7030

View File

@ -409,10 +409,16 @@ namespace Gala {
window_icon.opacity = 0;
set_window_icon_position (outer_rect.width, outer_rect.height);
window_icon.get_transition ("opacity").completed.connect (() => {
var transition = window_icon.get_transition ("opacity");
if (transition != null) {
transition.completed.connect (() => {
in_slot_animation = false;
place_widgets (outer_rect.width, outer_rect.height);
});
} else {
in_slot_animation = false;
place_widgets (outer_rect.width, outer_rect.height);
});
}
};
if (!animate || gesture_tracker == null || !with_gesture) {