Eliminate dependency on OsuGame

This commit is contained in:
Bartłomiej Dach
2021-09-05 17:53:57 +02:00
parent c397cc2027
commit a9403b65b3
2 changed files with 7 additions and 14 deletions

View File

@ -24,13 +24,13 @@ namespace osu.Game.Screens.Edit
PushEditor();
}
public void PushEditor([CanBeNull] BeatmapInfo beatmapInfo = null)
public void PushEditor([CanBeNull] BeatmapInfo beatmapInfo = null) => Schedule(() =>
{
if (beatmapInfo != null)
Beatmap.Value = beatmapManager.GetWorkingBeatmap(beatmapInfo);
this.Push(new Editor(this));
ValidForResume = false;
}
});
}
}