Skip to content

Commit

Permalink
Restore the placeholder setup.
Browse files Browse the repository at this point in the history
This is needed for when there are no updates. oops.
  • Loading branch information
italo-capasso committed Dec 22, 2024
1 parent b325dc3 commit ffbdb11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Views/AppListUpdateView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ namespace AppCenter.Views {

AppCenter.App.refresh_action.activate.connect (() => {
installed_liststore.remove_all ();
list_box.set_placeholder (loading_view);

refresh_menuitem.sensitive = false;
header_revealer.reveal_child = false;
Expand Down Expand Up @@ -232,7 +233,9 @@ namespace AppCenter.Views {
refresh_menuitem.sensitive = false;
header_revealer.reveal_child = false;
updated_revealer.reveal_child = false;
list_box.set_placeholder (loading_view);
} else {
list_box.set_placeholder (null);
refresh_menuitem.sensitive = true;
on_updates_changed ();
}
Expand Down

0 comments on commit ffbdb11

Please sign in to comment.