Skip to content

Commit d24b801

Browse files
Fix: Fixed issue where WebView process was left running in the background (#16852)
1 parent 2397f79 commit d24b801

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Files.App/Dialogs/ReleaseNotesDialog.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ private void ContentDialog_Closing(ContentDialog sender, ContentDialogClosingEve
5353

5454
private void CloseDialogButton_Click(object sender, RoutedEventArgs e)
5555
{
56+
BlogPostWebView.Close();
5657
Hide();
5758
}
5859

@@ -97,7 +98,7 @@ private async void WebView_WebMessageReceived(WebView2 sender, CoreWebView2WebMe
9798

9899
// Navigate back to blog post
99100
if (sender.CoreWebView2.CanGoBack)
100-
sender.CoreWebView2.GoBack();
101+
sender.CoreWebView2.GoBack();
101102
}
102103

103104
}

0 commit comments

Comments
 (0)