mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 17:57:38 +08:00
CI fixes
This commit is contained in:
parent
87add0765e
commit
4e742959f2
@ -2,7 +2,6 @@
|
|||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using osu.Framework.Logging;
|
using osu.Framework.Logging;
|
||||||
using osu.Game.Database;
|
using osu.Game.Database;
|
||||||
using SQLite.Net;
|
using SQLite.Net;
|
||||||
@ -82,14 +81,14 @@ namespace osu.Game.Beatmaps
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="beatmapSet">The beatmap to restore.</param>
|
/// <param name="beatmapSet">The beatmap to restore.</param>
|
||||||
/// <returns>Whether the beatmap's <see cref="BeatmapSetInfo.DeletePending"/> was changed.</returns>
|
/// <returns>Whether the beatmap's <see cref="BeatmapSetInfo.DeletePending"/> was changed.</returns>
|
||||||
public bool Undelete(BeatmapSetInfo set)
|
public bool Undelete(BeatmapSetInfo beatmapSet)
|
||||||
{
|
{
|
||||||
if (!set.DeletePending) return false;
|
if (!beatmapSet.DeletePending) return false;
|
||||||
|
|
||||||
set.DeletePending = false;
|
beatmapSet.DeletePending = false;
|
||||||
Connection.Update(set);
|
Connection.Update(beatmapSet);
|
||||||
|
|
||||||
BeatmapSetAdded?.Invoke(set);
|
BeatmapSetAdded?.Invoke(beatmapSet);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user