Remove EditSelected in favor in inlining beatmapNoDebounce in Edit

This commit is contained in:
Kyle Chang 2018-10-29 00:04:51 -04:00
parent 886dd0f0d4
commit c7e950af7f
2 changed files with 3 additions and 5 deletions

View File

@ -67,7 +67,7 @@ private void load(OsuColour colours, AudioManager audio, BeatmapManager beatmaps
BeatmapOptions.AddButton(@"Edit", @"beatmap", FontAwesome.fa_pencil, colours.Yellow, () =>
{
ValidForResume = false;
EditSelected();
Edit();
}, Key.Number3);
if (dialogOverlay != null)

View File

@ -223,14 +223,12 @@ private void load(BeatmapManager beatmaps, AudioManager audio, DialogOverlay dia
Carousel.LoadBeatmapSetsFromManager(this.beatmaps);
}
public void Edit(BeatmapInfo beatmap)
public void Edit(BeatmapInfo beatmap = null)
{
Beatmap.Value = beatmaps.GetWorkingBeatmap(beatmap);
Beatmap.Value = beatmaps.GetWorkingBeatmap(beatmap ?? beatmapNoDebounce);
Push(new Editor());
}
protected void EditSelected() => Edit(beatmapNoDebounce);
/// <summary>
/// Call to make a selection and perform the default action for this SongSelect.
/// </summary>