From 72b128efaa79ddf292088e01878a1fbbbe79ca91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Thu, 4 Nov 2021 09:12:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E6=97=B6=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.UI/IssuesWebbrowser.xaml.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/FastGithub.UI/IssuesWebbrowser.xaml.cs b/FastGithub.UI/IssuesWebbrowser.xaml.cs index 92b64e7..448fdc4 100644 --- a/FastGithub.UI/IssuesWebbrowser.xaml.cs +++ b/FastGithub.UI/IssuesWebbrowser.xaml.cs @@ -34,8 +34,14 @@ namespace FastGithub.UI private void NavigateIssueHtml() { - var resource = Application.GetResourceStream(new Uri("Resource/issue.html", UriKind.Relative)); - this.webBrowser.NavigateToStream(resource.Stream); + try + { + var resource = Application.GetResourceStream(new Uri("Resource/issue.html", UriKind.Relative)); + this.webBrowser.NavigateToStream(resource.Stream); + } + catch (Exception) + { + } } } }