Skip to content

Commit

Permalink
Skip clearing components of visible category view (#1973)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjr authored Jan 23, 2023
1 parent ca85a56 commit bb6a770
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Views/Homepage.vala
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ public class AppCenter.Homepage : Gtk.Box {
// Clear the cached categories when the AppStream pool is updated
foreach (unowned var child in category_flow.get_children ()) {
var item = (AbstractCategoryCard) child;
if (item.visible) {
continue;
}
var category_components = item.category.get_components ();
category_components.remove_range (0, category_components.length);
}
Expand Down

0 comments on commit bb6a770

Please sign in to comment.