Skip to content

Commit

Permalink
Correctly clear the state when the profiling data is re-loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuetschard committed Mar 14, 2022
1 parent 464a8b5 commit 37d7923
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gapic/src/main/com/google/gapid/views/CommandTree.java
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ public void onCommandsSelected(CommandIndex index) {

@Override
public void onProfileLoadingStart() {
tree.resetColumns();
tableMessage = Loadable.Message.loading(Messages.LOADING_PROFILE);
updateSize(true, 0);
redraw(Area.FULL);
Expand Down Expand Up @@ -1293,6 +1294,10 @@ public void reset(CommandStream.Node root, Consumer<List<Row>> onNewRows) {
onNewRows.accept(rows);
}

public void resetColumns() {
columns.clear();
}

public void dispose() {
for (Row row : rows) {
row.dispose();
Expand Down

0 comments on commit 37d7923

Please sign in to comment.