Quick fix: prevent search from executing on beatmap reload.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han 2015-01-21 03:25:19 -05:00
parent ee617c0710
commit 873d913424

View File

@ -377,7 +377,7 @@ public class SongMenu extends BasicGameState {
// search
search.setFocus(true);
searchTimer += delta;
if (searchTimer >= SEARCH_DELAY) {
if (searchTimer >= SEARCH_DELAY && reloadThread == null) {
searchTimer = 0;
// store the start/focus nodes
@ -596,6 +596,7 @@ public class SongMenu extends BasicGameState {
hoverIndex = -1;
search.setText("");
searchTimer = SEARCH_DELAY;
searchResultString = "Type to search!";
// reload songs in new thread
reloadThread = new Thread() {