mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08: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"/>,
|
||||
/// but can be overriden to add additional checks for verifying the model in database.
|
||||
/// </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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user