From e9063a176ed2a6e74e4883fe768b7d813e6a7dc8 Mon Sep 17 00:00:00 2001 From: liufei Date: Wed, 5 Jan 2022 17:21:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E6=8D=95=E8=8E=B7=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/App.xaml.cs b/App.xaml.cs index 4d1bbba..6bc6d7a 100644 --- a/App.xaml.cs +++ b/App.xaml.cs @@ -44,7 +44,10 @@ namespace GeekDesk { e.Handled = true;//使用这一行代码告诉运行时,该异常被处理了,不再作为UnhandledException抛出了。 LogUtil.WriteErrorLog(e, "未捕获异常!"); - MessageBox.Show("GeekDesk遇到一个问题, 不用担心, 这不影响其它操作!"); + if (Constants.DEV) + { + MessageBox.Show("GeekDesk遇到一个问题, 不用担心, 这不影响其它操作!"); + } } void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)