This commit is contained in:
trawzified 2024-08-13 22:37:31 +02:00
commit a9b4b05e2d
5 changed files with 22 additions and 9 deletions

View File

@ -5,6 +5,8 @@
* This issue only affected Fallout 3, Fallout NV and Skyrim LE
* Added logging to determine which downloaded files cannot be hashed
* This could occur in the downloading phase when installing a modlist when there are broken/corrupted files in the downloads folder
* Fixed Wabbajack crashing when double-clicking the browser window titlebar or URL
* Fixed Wabbajack always using explorer.exe instead of the default file browser
#### Version - 3.7.0.0 - 6/21/2024
* Added Starfield support

View File

@ -56,7 +56,6 @@ namespace Wabbajack
}
}
public static void OpenWebsite(Uri url)
{
Process.Start(new ProcessStartInfo("cmd.exe", $"/c start {url}")
@ -67,12 +66,19 @@ namespace Wabbajack
public static void OpenFolder(AbsolutePath path)
{
Process.Start(new ProcessStartInfo(KnownFolders.Windows.Combine("explorer.exe").ToString(), path.ToString())
string folderPath = path.ToString();
if (!folderPath.EndsWith(Path.DirectorySeparatorChar.ToString()))
{
CreateNoWindow = true,
});
folderPath += Path.DirectorySeparatorChar.ToString();
}
Process.Start(new ProcessStartInfo()
{
FileName = folderPath,
UseShellExecute = true,
Verb = "open"
});
}
public static AbsolutePath OpenFileDialog(string filter, string initialDirectory = null)
{

View File

@ -77,7 +77,7 @@ namespace Wabbajack
public void AfterInstallNavigation()
{
Process.Start("explorer.exe", Location.TargetPath.ToString());
UIUtils.OpenFolder(Location.TargetPath);
}
public async Task<bool> Install()

View File

@ -25,7 +25,6 @@ public partial class BrowserWindow : MetroWindow
{
InitializeComponent();
_disposable = new CompositeDisposable();
_serviceProvider = serviceProvider;
Browser = _serviceProvider.GetRequiredService<WebView2>();
@ -42,9 +41,12 @@ public partial class BrowserWindow : MetroWindow
}
private void UIElement_OnMouseDown(object sender, MouseButtonEventArgs e)
{
if (e.LeftButton == MouseButtonState.Pressed)
{
base.DragMove();
}
}
private void BrowserWindow_OnActivated(object sender, EventArgs e)
{

View File

@ -143,9 +143,12 @@ namespace Wabbajack
}
private void UIElement_OnMouseDown(object sender, MouseButtonEventArgs e)
{
if (e.LeftButton == MouseButtonState.Pressed)
{
this.DragMove();
}
}
}
}