Commit e2b4a413 authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko

platforms-page: Force hide filtered rows

Make sure css :first-child and :last-child work correctly.
parent 08e0e804
Pipeline #201975 passed with stages
in 34 minutes and 17 seconds
......@@ -65,8 +65,10 @@ private class Games.PlatformsPage : Gtk.Bin {
if (item == null)
return false;
if (item.platform == null)
if (item.platform == null) {
row.hide ();
return false;
}
Game[] visible_games = {};
for (int i = 0; i < game_model.get_n_items (); i++) {
......@@ -77,9 +79,12 @@ private class Games.PlatformsPage : Gtk.Bin {
}
foreach (var game in visible_games)
if (game.platform == item.platform)
if (game.platform == item.platform) {
row.show ();
return true;
}
row.hide ();
return false;
}
......
Markdown is supported
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