mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 11:02:57 +08:00
Add pending deletion skin cleanup
This commit is contained in:
parent
23146d59d1
commit
5db7cf23d3
@ -14,6 +14,7 @@ using osu.Framework.Statistics;
|
||||
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 @@ namespace osu.Game.Database
|
||||
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
Block a user