1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 09:42:54 +08:00

Add null-permissive operator to manager back

This commit is contained in:
Salman Ahmed 2021-01-17 21:19:55 +03:00
parent d93a853dfd
commit 0425a659a8

View File

@ -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)
{