Skip to content

Commit 6c1846b

Browse files
close webview when the content dialog gets closed
1 parent 92e87fb commit 6c1846b

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)