mirror of
https://github.com/ppy/osu.git
synced 2025-03-17 20:07:26 +08:00
Persist DateAdded
over beatmap updates
This commit is contained in:
parent
e5ad07454c
commit
2363a3fb7b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user