Commit e3252e11 authored by Adrien Plazas's avatar Adrien Plazas
Browse files

leaflet: Hide children on transition end only when folded

Hides the last visible child at the end of an animation only if the
leaflet is folded. This avoids children to become incorrectly invisible
at the end of the transition when the leaflet is unfolded.

Librem5/libhandy#32
parent e69899df
Pipeline #697 passed with stage
in 2 minutes and 8 seconds
......@@ -313,6 +313,7 @@ hdy_leaflet_child_progress_updated (HdyLeaflet *self)
}
if (priv->last_visible_child != NULL) {
if (hdy_leaflet_get_fold (self) == HDY_FOLD_FOLDED)
gtk_widget_set_child_visible (priv->last_visible_child->widget, FALSE);
priv->last_visible_child = NULL;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment