Stop track previews when importing beatmaps.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han 2015-03-20 00:44:50 -04:00
parent 1159c606f7
commit 3e1abf89cf

View File

@ -583,6 +583,10 @@ public class DownloadsMenu extends BasicGameState {
if (dirs != null && dirs.length > 0) {
OsuGroupNode node = OsuParser.parseDirectories(dirs);
if (node != null) {
// stop preview
previewID = -1;
SoundController.stopTrack();
// initialize song list
OsuGroupList.get().reset();
OsuGroupList.get().init();