mirror of https://github.com/ppy/osu
Add pending deletion skin cleanup
This commit is contained in:
parent
23146d59d1
commit
5db7cf23d3
|
@ -14,6 +14,7 @@
|
|||
using osu.Game.Configuration;
|
||||
using osu.Game.Input.Bindings;
|
||||
using osu.Game.Models;
|
||||
using osu.Game.Skinning;
|
||||
using osu.Game.Stores;
|
||||
using Realms;
|
||||
|
||||
|
@ -122,6 +123,11 @@ private void cleanupPendingDeletions()
|
|||
realm.Remove(s);
|
||||
}
|
||||
|
||||
var pendingDeleteSkins = realm.All<SkinInfo>().Where(s => s.DeletePending);
|
||||
|
||||
foreach (var s in pendingDeleteSkins)
|
||||
realm.Remove(s);
|
||||
|
||||
transaction.Commit();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue