Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
using NETworkManager.Settings;
using NETworkManager.Utilities;
using NETworkManager.Views;
using System;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
using System.Windows.Interop;

namespace NETworkManager.ViewModels;

Expand Down Expand Up @@ -118,7 +118,10 @@ private Task DeleteBrowsingData()
// Create a temporary WebView2 instance to clear browsing data
var webView2Environment =
await CoreWebView2Environment.CreateAsync(null, GlobalStaticConfiguration.WebConsole_Cache);
var webView2Controller = await webView2Environment.CreateCoreWebView2ControllerAsync(IntPtr.Zero);

var windowHwnd = new WindowInteropHelper(Application.Current.MainWindow).Handle;

var webView2Controller = await webView2Environment.CreateCoreWebView2ControllerAsync(windowHwnd);

await webView2Controller.CoreWebView2.Profile.ClearBrowsingDataAsync();

Expand Down
3 changes: 3 additions & 0 deletions Website/docs/changelog/next-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ Release date: **xx.xx.2025**

## Bugfixes

- **Web Console**
- Fixed an issue where clearing the Browser cache crashed the application. [#3169](https://github.com/BornToBeRoot/NETworkManager/pull/3169)

- **Profiles**
- Fixed an issue where only one profile was deleted in `Settings > Profiles` when multiple profiles were selected. [#3144](https://github.com/BornToBeRoot/NETworkManager/pull/3144) [#3145](https://github.com/BornToBeRoot/NETworkManager/issues/3145)

Expand Down