mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Don't
This commit is contained in:
@ -7,6 +7,7 @@
|
|||||||
* Fix some status messages during installation
|
* Fix some status messages during installation
|
||||||
* Optimize the modlist optimizer so runs a bit faster
|
* Optimize the modlist optimizer so runs a bit faster
|
||||||
* Rework the file hash cache so it doesn't block the UI thread
|
* Rework the file hash cache so it doesn't block the UI thread
|
||||||
|
* Errors when downloading modlists no longer cause the app to crash
|
||||||
|
|
||||||
#### Version - 3.0.1.7 - 9/27/2022
|
#### Version - 3.0.1.7 - 9/27/2022
|
||||||
* HOTFIX: fix "Could not find part of path" bug related to the profiles folder
|
* HOTFIX: fix "Could not find part of path" bug related to the profiles folder
|
||||||
|
@ -173,18 +173,30 @@ namespace Wabbajack
|
|||||||
|
|
||||||
private async Task Download()
|
private async Task Download()
|
||||||
{
|
{
|
||||||
Status = ModListStatus.Downloading;
|
try
|
||||||
|
{
|
||||||
using var ll = LoadingLock.WithLoading();
|
Status = ModListStatus.Downloading;
|
||||||
var (progress, task) = _maintainer.DownloadModlist(Metadata);
|
|
||||||
var dispose = progress
|
|
||||||
.BindToStrict(this, vm => vm.ProgressPercent);
|
|
||||||
|
|
||||||
await task;
|
using var ll = LoadingLock.WithLoading();
|
||||||
|
var (progress, task) = _maintainer.DownloadModlist(Metadata);
|
||||||
await _wjClient.SendMetric("downloading", Metadata.Title);
|
var dispose = progress
|
||||||
await UpdateStatus();
|
.BindToStrict(this, vm => vm.ProgressPercent);
|
||||||
dispose.Dispose();
|
try
|
||||||
|
{
|
||||||
|
await _wjClient.SendMetric("downloading", Metadata.Title);
|
||||||
|
await task;
|
||||||
|
await UpdateStatus();
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
dispose.Dispose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
_logger.LogError(ex, "While downloading {Modlist}", Metadata.RepositoryName);
|
||||||
|
await UpdateStatus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task UpdateStatus()
|
private async Task UpdateStatus()
|
||||||
|
Reference in New Issue
Block a user