Skip to content

Commit

Permalink
Fix bug in details command
Browse files Browse the repository at this point in the history
  • Loading branch information
yongxiangng committed Oct 11, 2021
1 parent 4015615 commit efff960
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/seedu/address/ui/PersonListPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ public PersonListPanel(ObservableList<Person> personList) {
*/
public void setShowDetails(boolean showDetails) {
this.showDetails = showDetails;
refresh();
}

/**
* Refreshes the entire component.
*/
public void refresh() {
personListView.setItems(personListView.getItems());
personListView.setCellFactory(listView -> new PersonListViewCell());
personListView.refresh();
}

/**
Expand Down

0 comments on commit efff960

Please sign in to comment.