mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 04:02:59 +08:00
Remove hide/restore event flow
This commit is contained in:
parent
c06b5951fd
commit
9beabad6a4
@ -113,16 +113,6 @@ namespace osu.Game.Beatmaps
|
|||||||
return imported.PerformRead(s => GetWorkingBeatmap(s.Beatmaps.First()));
|
return imported.PerformRead(s => GetWorkingBeatmap(s.Beatmaps.First()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Fired when a single difficulty has been hidden.
|
|
||||||
/// </summary>
|
|
||||||
public event Action<BeatmapInfo>? BeatmapHidden;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Fired when a single difficulty has been restored.
|
|
||||||
/// </summary>
|
|
||||||
public event Action<BeatmapInfo>? BeatmapRestored;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Delete a beatmap difficulty.
|
/// Delete a beatmap difficulty.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -134,8 +124,6 @@ namespace osu.Game.Beatmaps
|
|||||||
{
|
{
|
||||||
beatmapInfo.Hidden = true;
|
beatmapInfo.Hidden = true;
|
||||||
transaction.Commit();
|
transaction.Commit();
|
||||||
|
|
||||||
BeatmapHidden?.Invoke(beatmapInfo);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,8 +138,6 @@ namespace osu.Game.Beatmaps
|
|||||||
{
|
{
|
||||||
beatmapInfo.Hidden = false;
|
beatmapInfo.Hidden = false;
|
||||||
transaction.Commit();
|
transaction.Commit();
|
||||||
|
|
||||||
BeatmapRestored?.Invoke(beatmapInfo);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user