mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
select beatmap on import/download
This commit is contained in:
parent
3e417d8e30
commit
dde7678095
@ -2,6 +2,7 @@
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using OpenTK;
|
||||
using OpenTK.Input;
|
||||
@ -302,7 +303,14 @@ namespace osu.Game.Screens.Select
|
||||
carousel.Filter(criteria, debounce);
|
||||
}
|
||||
|
||||
private void onBeatmapSetAdded(BeatmapSetInfo s) => Schedule(() => carousel.UpdateBeatmapSet(s));
|
||||
private void onBeatmapSetAdded(BeatmapSetInfo s)
|
||||
{
|
||||
Schedule(() =>
|
||||
{
|
||||
carousel.UpdateBeatmapSet(s);
|
||||
carousel.SelectBeatmap(s.Beatmaps.First());
|
||||
});
|
||||
}
|
||||
|
||||
private void onBeatmapSetRemoved(BeatmapSetInfo s) => Schedule(() => removeBeatmapSet(s));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user