Fix bug with file moving in manual mode

This commit is contained in:
Timothy Baldridge 2019-11-06 21:23:43 -07:00
parent cb667ed4f8
commit 040289f16c

View File

@ -98,7 +98,8 @@ namespace Wabbajack.Lib.Downloaders
.Select(x => x.FirstOrDefault())
.FirstOrDefaultAsync();
Process.Start(Url);
watcher.Wait();
abs_path = watcher.Wait()?.FullPath;
if (!File.Exists(abs_path))
throw new InvalidDataException($"File not found after manual download operation");
File.Move(abs_path, destination);