diff --git a/XplorePlane/App.xaml.cs b/XplorePlane/App.xaml.cs index 88eed0a..b5e3e68 100644 --- a/XplorePlane/App.xaml.cs +++ b/XplorePlane/App.xaml.cs @@ -492,11 +492,11 @@ namespace XplorePlane Application.Current.Dispatcher.Invoke(() => { Log.Warning("临时测试模式剩余5分钟 | Temporary test mode: 5 minutes remaining"); - MessageBox.Show( - "临时测试模式将在5分钟后到期,请尽快保存您的工作。\nTemporary test mode will expire in 5 minutes, please save your work.", - "测试模式提醒 | Test Mode Reminder", - MessageBoxButton.OK, - MessageBoxImage.Information); + //MessageBox.Show( + // "临时测试模式将在5分钟后到期,请尽快保存您的工作。\nTemporary test mode will expire in 5 minutes, please save your work.", + // "测试模式提醒 | Test Mode Reminder", + // MessageBoxButton.OK, + // MessageBoxImage.Information); }); } @@ -508,11 +508,11 @@ namespace XplorePlane Application.Current.Dispatcher.Invoke(() => { Log.Warning("临时测试模式剩余1分钟 | Temporary test mode: 1 minute remaining"); - MessageBox.Show( - "临时测试模式将在1分钟后到期,软件即将关闭,请立即保存您的工作。\nTemporary test mode will expire in 1 minute, the software will shut down soon. Please save your work immediately.", - "测试模式即将到期 | Test Mode Expiring", - MessageBoxButton.OK, - MessageBoxImage.Warning); + //MessageBox.Show( + // "临时测试模式将在1分钟后到期,软件即将关闭,请立即保存您的工作。\nTemporary test mode will expire in 1 minute, the software will shut down soon. Please save your work immediately.", + // "测试模式即将到期 | Test Mode Expiring", + // MessageBoxButton.OK, + // MessageBoxImage.Warning); }); } @@ -523,9 +523,10 @@ namespace XplorePlane { Application.Current.Dispatcher.Invoke(() => { - Log.Warning("临时测试模式已超时,执行正常关闭流程 | Temporary test mode timed out, performing graceful shutdown"); - // 使用正常关闭流程,确保资源正确释放 | Use graceful shutdown to ensure proper resource release - Application.Current.MainWindow?.Close(); + Log.Warning("临时测试模式已超时,开发阶段不执行软件自动退出流程 | Temporary test mode timed out"); + //Log.Warning("临时测试模式已超时,执行正常关闭流程 | Temporary test mode timed out, performing graceful shutdown"); + // // 使用正常关闭流程,确保资源正确释放 | Use graceful shutdown to ensure proper resource release + // Application.Current.MainWindow?.Close(); }); }