mirror of https://github.com/ppy/osu
Persist `DateAdded` over beatmap updates
This commit is contained in:
parent
e5ad07454c
commit
2363a3fb7b
|
@ -38,6 +38,9 @@ void onSuccess(Live<BeatmapSetInfo> imported)
|
|||
// 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);
|
||||
|
|
Loading…
Reference in New Issue