Skip to content

Commit

Permalink
Do not select beatmap in previous selection if the current beatmap is…
Browse files Browse the repository at this point in the history
… loading
  • Loading branch information
Rian8337 committed Aug 20, 2023
1 parent e294893 commit 821c12e
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 @@ -510,6 +510,10 @@ public boolean onAreaTouched(final TouchEvent pSceneTouchEvent,
previousSelectionTimer.scheduleAtFixedRate(new TimerTask() {
@Override
public void run() {
if (!isSelectComplete) {
return;
}

MenuItem previousItem = previousSelectedItems.pollLast();
while (previousItem != null && previousItem.isDeleted()) {
previousItem = previousSelectedItems.pollLast();
Expand Down

0 comments on commit 821c12e

Please sign in to comment.