Skip to content

Commit

Permalink
Ensure the dismiss calls are in main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Reco1I committed Nov 21, 2024
1 parent 124e7a8 commit 9755e05
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ru/nsu/ccfit/zuev/osu/menu/SongMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -1140,8 +1140,10 @@ public void selectBeatmap(final BeatmapInfo beatmapInfo, boolean reloadBG) {

Replay.oldFLFollowDelay = ModMenu.getInstance().getFLfollowDelay();

ModMenu.getInstance().hide();
searchBar.dismiss();
Execution.mainThread(() -> {
ModMenu.getInstance().hide();
searchBar.dismiss();
});

game.startGame(beatmapInfo, null);
return;
Expand Down

0 comments on commit 9755e05

Please sign in to comment.