mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Added catch to ModListMetadataVM's needs download check
Was failing to calculate hash while file was locked during download
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@ -76,7 +76,17 @@ namespace Wabbajack
|
|||||||
_Exists = Observable.Interval(TimeSpan.FromSeconds(0.5))
|
_Exists = Observable.Interval(TimeSpan.FromSeconds(0.5))
|
||||||
.Unit()
|
.Unit()
|
||||||
.StartWith(Unit.Default)
|
.StartWith(Unit.Default)
|
||||||
.Select(_ => !metadata.NeedsDownload(Location))
|
.Select(_ =>
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return !metadata.NeedsDownload(Location);
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
})
|
||||||
.ToProperty(this, nameof(Exists));
|
.ToProperty(this, nameof(Exists));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user