Bugfix for download path re-filling itself undesirably

This commit is contained in:
Justin Swanson 2019-11-23 18:40:18 -06:00
parent df62c2ff8c
commit 4e0f061e05

View File

@ -182,6 +182,8 @@ namespace Wabbajack
.FilterSwitch( .FilterSwitch(
this.WhenAny(x => x.DownloadLocation.Exists) this.WhenAny(x => x.DownloadLocation.Exists)
.Invert()) .Invert())
// A skip is needed to ignore the initial signal when the FilterSwitch turns on
.Skip(1)
.Subscribe(_ => .Subscribe(_ =>
{ {
DownloadLocation.TargetPath = MO2Compiler.GetTypicalDownloadsFolder(Mo2Folder); DownloadLocation.TargetPath = MO2Compiler.GetTypicalDownloadsFolder(Mo2Folder);