Skip to content

Commit

Permalink
Removing the placeholder methods.
Browse files Browse the repository at this point in the history
Sionce this only appear when lists are empty, there not need to explicitly remove  since we arealready removing list data.
  • Loading branch information
italo-capasso committed Dec 22, 2024
1 parent be152c5 commit 6f6b9cc
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/Views/AppListUpdateView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -229,21 +229,8 @@ namespace AppCenter.Views {
refresh_menuitem.set_sensitive (false);
header_revealer.reveal_child = false;
updated_revealer.reveal_child = false;

switch (flatpak_backend.job_type) {
case GET_PREPARED_PACKAGES:
case GET_UPDATES:
case REFRESH_CACHE:
case UPDATE_PACKAGE:
list_box.set_placeholder (loading_view);
break;
default:
list_box.set_placeholder (null);
break;
}
} else {
refresh_menuitem.set_sensitive (true);
list_box.set_placeholder (null);
on_updates_changed ();
}
});
Expand Down

0 comments on commit 6f6b9cc

Please sign in to comment.