Quick fix: prevent search from executing on beatmap reload.
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
parent
ee617c0710
commit
873d913424
|
@ -377,7 +377,7 @@ public class SongMenu extends BasicGameState {
|
||||||
// search
|
// search
|
||||||
search.setFocus(true);
|
search.setFocus(true);
|
||||||
searchTimer += delta;
|
searchTimer += delta;
|
||||||
if (searchTimer >= SEARCH_DELAY) {
|
if (searchTimer >= SEARCH_DELAY && reloadThread == null) {
|
||||||
searchTimer = 0;
|
searchTimer = 0;
|
||||||
|
|
||||||
// store the start/focus nodes
|
// store the start/focus nodes
|
||||||
|
@ -596,6 +596,7 @@ public class SongMenu extends BasicGameState {
|
||||||
hoverIndex = -1;
|
hoverIndex = -1;
|
||||||
search.setText("");
|
search.setText("");
|
||||||
searchTimer = SEARCH_DELAY;
|
searchTimer = SEARCH_DELAY;
|
||||||
|
searchResultString = "Type to search!";
|
||||||
|
|
||||||
// reload songs in new thread
|
// reload songs in new thread
|
||||||
reloadThread = new Thread() {
|
reloadThread = new Thread() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user