mirror of https://github.com/ppy/osu
Revert "Remove nullable on `RealmBackedResourceStore` realm parameter"
This reverts commit 09e15f5496
.
This commit is contained in:
parent
5f358a04e9
commit
f73062a0d6
|
@ -23,7 +23,7 @@ public class RealmBackedResourceStore<T> : ResourceStore<byte[]>
|
|||
private readonly Live<T> liveSource;
|
||||
private readonly IDisposable? realmSubscription;
|
||||
|
||||
public RealmBackedResourceStore(Live<T> source, IResourceStore<byte[]> underlyingStore, RealmAccess realm)
|
||||
public RealmBackedResourceStore(Live<T> source, IResourceStore<byte[]> underlyingStore, RealmAccess? realm)
|
||||
: base(underlyingStore)
|
||||
{
|
||||
liveSource = source;
|
||||
|
@ -31,7 +31,7 @@ public RealmBackedResourceStore(Live<T> source, IResourceStore<byte[]> underlyin
|
|||
invalidateCache();
|
||||
Debug.Assert(fileToStoragePathMapping != null);
|
||||
|
||||
realmSubscription = realm.RegisterForNotifications(r => r.All<T>().Where(s => s.ID == source.ID), skinChanged);
|
||||
realmSubscription = realm?.RegisterForNotifications(r => r.All<T>().Where(s => s.ID == source.ID), skinChanged);
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
|
|
Loading…
Reference in New Issue