From d6e0c2067c835472c706b542d380b274793cb503 Mon Sep 17 00:00:00 2001 From: "Rian (Reza Mouna Hendrian)" <52914632+Rian8337@users.noreply.github.com> Date: Sun, 15 Sep 2024 00:01:51 +0700 Subject: [PATCH] Do not update track info after difficulty calculation if the selected track has changed --- src/ru/nsu/ccfit/zuev/osu/menu/SongMenu.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ru/nsu/ccfit/zuev/osu/menu/SongMenu.java b/src/ru/nsu/ccfit/zuev/osu/menu/SongMenu.java index b8b330bec..c4a88d673 100644 --- a/src/ru/nsu/ccfit/zuev/osu/menu/SongMenu.java +++ b/src/ru/nsu/ccfit/zuev/osu/menu/SongMenu.java @@ -1071,6 +1071,10 @@ public void updateInfo(TrackInfo track) { return; } + if (selectedTrack != null && !beatmapData.getMD5().equals(selectedTrack.getMD5())) { + return; + } + beatmapData.populateMetadata(track); changeDimensionInfo(track);