don't delay the downloadmenu message when no songs are available
This commit is contained in:
parent
9af6abacb0
commit
34dc75469c
|
@ -149,9 +149,6 @@ public class DownloadsMenu extends ComplexOpsuState {
|
|||
/** Beatmap set ID of the current beatmap being previewed, or -1 if none. */
|
||||
private int previewID = -1;
|
||||
|
||||
/** The bar notification to send upon entering the state. */
|
||||
private String barNotificationOnLoad;
|
||||
|
||||
/** Search query, executed in {@code queryThread}. */
|
||||
private SearchQuery searchQuery;
|
||||
|
||||
|
@ -948,10 +945,6 @@ public class DownloadsMenu extends ComplexOpsuState {
|
|||
startDownloadIndexPos.setPosition(0);
|
||||
pageDir = Page.RESET;
|
||||
previewID = -1;
|
||||
if (barNotificationOnLoad != null) {
|
||||
barNotifs.send(barNotificationOnLoad);
|
||||
barNotificationOnLoad = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -992,10 +985,4 @@ public class DownloadsMenu extends ComplexOpsuState {
|
|||
else if (DownloadNode.downloadAreaContains(cx, cy))
|
||||
startDownloadIndexPos.scrollOffset(shift * DownloadNode.getInfoHeight());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a bar notification upon entering the state.
|
||||
* @param s the notification string
|
||||
*/
|
||||
public void notifyOnLoad(String s) { barNotificationOnLoad = s; }
|
||||
}
|
||||
|
|
|
@ -895,7 +895,7 @@ public class MainMenu extends BaseOpsuState {
|
|||
private void enterSongMenu() {
|
||||
OpsuState state = songMenuState;
|
||||
if (BeatmapSetList.get().getMapSetCount() == 0) {
|
||||
downloadState.notifyOnLoad("Download some beatmaps to get started!");
|
||||
barNotifs.send("Download some beatmaps to get started!");
|
||||
state = downloadState;
|
||||
}
|
||||
displayContainer.switchState(state);
|
||||
|
|
Loading…
Reference in New Issue
Block a user