1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-18 02:47:19 +08:00

Persist DateAdded over beatmap updates

This commit is contained in:
Dean Herbert 2022-07-25 18:55:08 +09:00
parent e5ad07454c
commit 2363a3fb7b

View File

@ -38,6 +38,9 @@ namespace osu.Game.Beatmaps
// but that isn't a guarantee (ie. if the .osu file doesn't have OnlineIDs populated).
original.DeletePending = true;
// Transfer local values which should be persisted across a beatmap update.
updated.DateAdded = original.DateAdded;
foreach (var beatmap in original.Beatmaps.ToArray())
{
var updatedBeatmap = updated.Beatmaps.FirstOrDefault(b => b.Hash == beatmap.Hash);