Skip to content

Commit

Permalink
fix the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lbergelson committed Oct 31, 2023
1 parent 0478c64 commit 2e8f4f3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main/java/org/broad/igv/sam/AlignmentTrack.java
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,12 @@ public void receiveEvent(Object event) {
}

} else if (event instanceof DataLoadedEvent dataLoaded) {
actionToPerformOnFrameLoad.computeIfPresent(dataLoaded.getReferenceFrame(), (k, v) -> {
v.accept(k);
return null;
});
if (dataManager.isLoaded(dataLoaded.getReferenceFrame())) {
actionToPerformOnFrameLoad.computeIfPresent(dataLoaded.getReferenceFrame(), (k, v) -> {
v.accept(k);
return null; //remove this action from the map
});
}
}
}

Expand Down

0 comments on commit 2e8f4f3

Please sign in to comment.