mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Share file lookup workaround in ArchiveModelManager with workaround extensions class
This commit is contained in:
@ -462,9 +462,7 @@ namespace osu.Game.Database
|
||||
// Dereference the existing file info, since the file model will be removed.
|
||||
if (file.FileInfo != null)
|
||||
{
|
||||
// Workaround System.InvalidOperationException
|
||||
// The instance of entity type 'FileInfo' cannot be tracked because another instance with the same key value for {'ID'} is already being tracked.
|
||||
file.FileInfo = usage.Context.FileInfo.Find(file.FileInfoID);
|
||||
file.Requery(usage.Context);
|
||||
|
||||
Files.Dereference(file.FileInfo);
|
||||
|
||||
|
Reference in New Issue
Block a user