Few more fixes

This commit is contained in:
Timothy Baldridge 2020-05-04 16:49:24 -06:00
parent daf7eba26a
commit 223b6d4e92
2 changed files with 4 additions and 4 deletions

View File

@ -156,16 +156,16 @@ namespace Wabbajack.Lib
from.IsReadOnly = false;
}
if (vf!.IsNative && vf.AbsoluteName == from)
if (vf!.IsNative)
{
await from.HardLinkIfOversize(to);
return;
}
if (useMove)
from.MoveTo(to);
await @from.MoveToAsync(to);
else
from.CopyTo(to);
await @from.CopyToAsync(to);
// If we don't do this, the file will use the last-modified date of the file when it was compressed
// into an archive, which isn't really what we want in the case of files installed archives
to.LastModified = DateTime.Now;

View File

@ -81,7 +81,7 @@ namespace Wabbajack.Lib.WebAutomation
IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser? newBrowser)
{
// Block popups
newBrowser = chromiumWebBrowser;
newBrowser = null;
return true;
}