Skip to content

Commit

Permalink
Check the vexpand value of list_box after adding the possible items i…
Browse files Browse the repository at this point in the history
…n installed_liststore
  • Loading branch information
italo-capasso committed Dec 22, 2024
1 parent ffbdb11 commit e1a89d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Views/AppListUpdateView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,14 @@ namespace AppCenter.Views {
unowned var flatpak_backend = AppCenterCore.FlatpakBackend.get_default ();
var installed_apps = yield flatpak_backend.get_installed_applications (refresh_cancellable);
installed_header.visible = !installed_apps.is_empty;
list_box.vexpand = installed_apps.is_empty;

foreach (var package in installed_apps) {
if (package.state != UPDATE_AVAILABLE && package.kind != ADDON && package.kind != FONT) {
installed_liststore.insert_sorted (package, compare_installed_func);
}
}

list_box.vexpand = installed_liststore.n_items <= 0;
}

refresh_cancellable = null;
Expand Down

0 comments on commit e1a89d5

Please sign in to comment.