mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Add null-permissive operator to manager back
This commit is contained in:
parent
d93a853dfd
commit
0425a659a8
@ -80,7 +80,7 @@ namespace osu.Game.Online
|
|||||||
/// By default, this calls <see cref="IModelDownloader{TModel}.IsAvailableLocally"/>,
|
/// By default, this calls <see cref="IModelDownloader{TModel}.IsAvailableLocally"/>,
|
||||||
/// but can be overriden to add additional checks for verifying the model in database.
|
/// but can be overriden to add additional checks for verifying the model in database.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected virtual bool IsModelAvailableLocally() => Manager.IsAvailableLocally(Model.Value);
|
protected virtual bool IsModelAvailableLocally() => Manager?.IsAvailableLocally(Model.Value) == true;
|
||||||
|
|
||||||
private void downloadBegan(ValueChangedEvent<WeakReference<ArchiveDownloadRequest<TModel>>> weakRequest)
|
private void downloadBegan(ValueChangedEvent<WeakReference<ArchiveDownloadRequest<TModel>>> weakRequest)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user