Post merge fixes

This commit is contained in:
naoey 2019-06-26 18:22:37 +05:30
parent f3a84de7b5
commit 8efc504817
No known key found for this signature in database
GPG Key ID: 670DA9BE3DF7EE60
1 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ private void load(TModelManager manager)
manager.DownloadBegan += download =>
{
if (download.Info.Equals(ModelInfo.Value))
if (download.Model.Equals(ModelInfo.Value))
attachDownload(download);
};
@ -77,9 +77,9 @@ protected override void Dispose(bool isDisposing)
#endregion
private ArchiveDownloadModelRequest<TModel> attachedRequest;
private ArchiveDownloadRequest<TModel> attachedRequest;
private void attachDownload(ArchiveDownloadModelRequest<TModel> request)
private void attachDownload(ArchiveDownloadRequest<TModel> request)
{
if (attachedRequest != null)
{
@ -119,7 +119,7 @@ private void attachDownload(ArchiveDownloadModelRequest<TModel> request)
private void onRequestFailure(Exception e) => Schedule(() => attachDownload(null));
private void itemAdded(TModel s, bool existing) => setDownloadStateFromManager(s, DownloadState.LocallyAvailable);
private void itemAdded(TModel s) => setDownloadStateFromManager(s, DownloadState.LocallyAvailable);
private void itemRemoved(TModel s) => setDownloadStateFromManager(s, DownloadState.NotDownloaded);