mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Merge pull request #15812 from peppy/realm-live-unmanaged-fetch-fix
Avoid attempting to fetch a non-managed `RealmLive` instance from the realm backing
This commit is contained in:
@ -11,6 +11,7 @@ namespace osu.Game.Database
|
||||
{
|
||||
public EntityFrameworkLive(T item)
|
||||
{
|
||||
IsManaged = true; // no way to really know.
|
||||
Value = item;
|
||||
}
|
||||
|
||||
@ -31,6 +32,8 @@ namespace osu.Game.Database
|
||||
perform(Value);
|
||||
}
|
||||
|
||||
public bool IsManaged { get; }
|
||||
|
||||
public T Value { get; }
|
||||
|
||||
public bool Equals(ILive<T>? other) => ID == other?.ID;
|
||||
|
Reference in New Issue
Block a user