Skip to content

Commit

Permalink
Show Operating System Updates and Runtime Updates only if available (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
meisenzahl committed Jan 2, 2023
1 parent acd3278 commit 8cb5b1d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/Views/AppListUpdateView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,17 @@ namespace AppCenter.Views {
clear ();

var os_updates = AppCenterCore.UpdateManager.get_default ().os_updates;
add_package (os_updates);
var os_updates_size = yield os_updates.get_download_size_including_deps ();
if (os_updates_size > 0) {
add_package (os_updates);
}

var runtime_updates = AppCenterCore.UpdateManager.get_default ().runtime_updates;
add_package (runtime_updates);
var runtime_updates_size = yield runtime_updates.get_download_size_including_deps ();
if (runtime_updates_size > 0) {
add_package (runtime_updates);
}

add_packages (installed_apps);
}

Expand Down

0 comments on commit 8cb5b1d

Please sign in to comment.