Block collection loading until realm migration has completed

This commit is contained in:
Dean Herbert
2022-01-27 00:34:51 +09:00
parent bab337591f
commit f21e3d0d86
3 changed files with 12 additions and 0 deletions

View File

@ -50,9 +50,14 @@ namespace osu.Game.Collections
this.storage = storage;
}
[Resolved(canBeNull: true)]
private DatabaseContextFactory efContextFactory { get; set; } = null!;
[BackgroundDependencyLoader]
private void load()
{
efContextFactory?.WaitForMigrationCompletion();
Collections.CollectionChanged += collectionsChanged;
if (storage.Exists(database_backup_name))