Add pending deletion skin cleanup

This commit is contained in:
Dean Herbert 2021-11-29 17:59:41 +09:00
parent 23146d59d1
commit 5db7cf23d3
1 changed files with 6 additions and 0 deletions

View File

@ -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();
}