From e1a89d55d9c76c295e9e40cf195512218bd3a4f5 Mon Sep 17 00:00:00 2001 From: italo-capasso Date: Sun, 22 Dec 2024 00:49:38 -0500 Subject: [PATCH] Check the vexpand value of list_box after adding the possible items in installed_liststore --- src/Views/AppListUpdateView.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Views/AppListUpdateView.vala b/src/Views/AppListUpdateView.vala index 53bb16c33..03e3c9365 100644 --- a/src/Views/AppListUpdateView.vala +++ b/src/Views/AppListUpdateView.vala @@ -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;