3.4.0.0 Release

This commit is contained in:
Timothy Baldridge 2023-11-19 14:07:46 -07:00
parent 0c11f11839
commit 7be18e8497
5 changed files with 17 additions and 5 deletions

View File

@ -1,6 +1,6 @@
### Changelog
#### Version - 3.3.1.0 - TBA
#### Version - 3.4.0.0 - 11/19/2023
* Fixed `--outputPath` not being used for the CLI `compile` (thanks to @majcosta for fixing that)
* Improved Log message for cases where low storage on the drive Wabbajack is installed on causes compiles to fail
* **To list authors still compiling on Wabbajack 3.0.5.0:**
@ -11,6 +11,8 @@
* Updated Dependencies
* LZ4 to version 1.3.7-beta
* SharpZipLib to version 1.4.2
* Fully upgraded to .NET 8.0
* Fixed the WebView2 based browser window to no longer crash the application when closed
#### Version - 3.3.0.1 - (Was only a Pre-Release)
* Fixed Manual Downloading on NexusMods being blocked by a hidden cookie consent banner

View File

@ -27,5 +27,6 @@ public class ManualDownloadHandler : BrowserWindowViewModel
var uri = await task;
Intervention.Finish(uri);
await Task.Delay(5000, CancellationToken.None);
}
}

View File

@ -120,20 +120,27 @@ public abstract class BrowserWindowViewModel : ViewModel
while (_browser.CoreWebView2 == null)
await Task.Delay(10, token);
_browser.CoreWebView2.DownloadStarting += (sender, args) =>
EventHandler<CoreWebView2DownloadStartingEventArgs> handler = null!;
handler = (_, args) =>
{
try
{
source.SetResult(new Uri(args.DownloadOperation.Uri));
_browser.CoreWebView2.DownloadStarting -= handler;
}
catch (Exception)
{
source.SetCanceled();
source.SetCanceled(token);
_browser.CoreWebView2.DownloadStarting -= handler;
}
args.Cancel = true;
args.Handled = true;
};
_browser.CoreWebView2.DownloadStarting += handler;
Uri uri;
while (true)

View File

@ -1,4 +1,6 @@
using System;
using System.Windows.Controls;
using Microsoft.Web.WebView2.WinForms;
using ReactiveUI;
namespace Wabbajack.Views;

View File

@ -2,6 +2,7 @@ using System;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
using MahApps.Metro.Controls;
@ -57,7 +58,6 @@ public partial class BrowserWindow : MetroWindow
.ContinueWith(_ => Dispatcher.Invoke(() =>
{
Close();
Browser.Dispose();
Browser = null;
}));
}