From 78b0f6bb9357fbb17c5606892aa2ff9c25e8e413 Mon Sep 17 00:00:00 2001 From: ZouJin Date: Sun, 7 Apr 2024 15:04:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E5=A4=84=E7=90=86=E4=B8=8D?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Windows/App.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VPet-Simulator.Windows/App.xaml.cs b/VPet-Simulator.Windows/App.xaml.cs index e081f6d..342499d 100644 --- a/VPet-Simulator.Windows/App.xaml.cs +++ b/VPet-Simulator.Windows/App.xaml.cs @@ -48,7 +48,7 @@ namespace VPet_Simulator.Windows private void UnhandledException(Exception e, bool isFatality) { var expt = e.ToString(); - if (expt.Contains("MainWindow.Close")) + if (expt.Contains("MainWindow.Close") && expt.Contains("System.ArgumentException"))//临时处理不报错 return; else if ((!isFatality && MainWindow != null && ((MainWindow)MainWindow).GameSavesData?.GameSave != null && (((MainWindow)MainWindow).GameSavesData.GameSave.Money > int.MaxValue || ((MainWindow)MainWindow).GameSavesData.GameSave.Exp > int.MaxValue)