Skip to content

Commit

Permalink
Do not update track info after difficulty calculation if the selected…
Browse files Browse the repository at this point in the history
… track has changed
  • Loading branch information
Rian8337 committed Sep 14, 2024
1 parent 65333d7 commit d6e0c20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ru/nsu/ccfit/zuev/osu/menu/SongMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,10 @@ public void updateInfo(TrackInfo track) {
return;
}

if (selectedTrack != null && !beatmapData.getMD5().equals(selectedTrack.getMD5())) {
return;
}

beatmapData.populateMetadata(track);
changeDimensionInfo(track);

Expand Down

0 comments on commit d6e0c20

Please sign in to comment.