mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 05:02:55 +08:00
Make model manager in DownloadTrackingComposite
protected
This commit is contained in:
parent
eb40d3a5ba
commit
d9034eab26
@ -20,7 +20,7 @@ namespace osu.Game.Online
|
||||
protected readonly Bindable<TModel> Model = new Bindable<TModel>();
|
||||
|
||||
[Resolved(CanBeNull = true)]
|
||||
private TModelManager manager { get; set; }
|
||||
protected TModelManager Manager { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Holds the current download state of the <typeparamref name="TModel"/>, whether is has already been downloaded, is in progress, or is not downloaded.
|
||||
@ -49,19 +49,19 @@ namespace osu.Game.Online
|
||||
else if (manager?.IsAvailableLocally(modelInfo.NewValue) == true)
|
||||
State.Value = DownloadState.LocallyAvailable;
|
||||
else
|
||||
attachDownload(manager?.GetExistingDownload(modelInfo.NewValue));
|
||||
attachDownload(Manager?.GetExistingDownload(modelInfo.NewValue));
|
||||
}, true);
|
||||
|
||||
if (manager == null)
|
||||
if (Manager == null)
|
||||
return;
|
||||
|
||||
managerDownloadBegan = manager.DownloadBegan.GetBoundCopy();
|
||||
managerDownloadBegan = Manager.DownloadBegan.GetBoundCopy();
|
||||
managerDownloadBegan.BindValueChanged(downloadBegan);
|
||||
managerDownloadFailed = manager.DownloadFailed.GetBoundCopy();
|
||||
managerDownloadFailed = Manager.DownloadFailed.GetBoundCopy();
|
||||
managerDownloadFailed.BindValueChanged(downloadFailed);
|
||||
managedUpdated = manager.ItemUpdated.GetBoundCopy();
|
||||
managedUpdated = Manager.ItemUpdated.GetBoundCopy();
|
||||
managedUpdated.BindValueChanged(itemUpdated);
|
||||
managerRemoved = manager.ItemRemoved.GetBoundCopy();
|
||||
managerRemoved = Manager.ItemRemoved.GetBoundCopy();
|
||||
managerRemoved.BindValueChanged(itemRemoved);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user