mirror of
https://github.com/osukey/osukey.git
synced 2025-05-31 10:27:26 +09:00
Add exception disallowing potential edit when disabled at a property level
This commit is contained in:
parent
c4caf38feb
commit
91b13f91ea
@ -324,6 +324,9 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
public void Edit(BeatmapInfo beatmap = null)
|
public void Edit(BeatmapInfo beatmap = null)
|
||||||
{
|
{
|
||||||
|
if (!AllowEditing)
|
||||||
|
throw new InvalidOperationException($"Attempted to edit when {nameof(AllowEditing)} is disabled");
|
||||||
|
|
||||||
Beatmap.Value = beatmaps.GetWorkingBeatmap(beatmap ?? beatmapNoDebounce);
|
Beatmap.Value = beatmaps.GetWorkingBeatmap(beatmap ?? beatmapNoDebounce);
|
||||||
this.Push(new Editor());
|
this.Push(new Editor());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user