From 3871681de3707b1a78999fdaf8da434d41bce3d0 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Tue, 26 Mar 2024 14:22:53 +0800 Subject: [PATCH] Improve remove Application.Current.Shutdown --- v2rayN/v2rayN/App.xaml.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/v2rayN/v2rayN/App.xaml.cs b/v2rayN/v2rayN/App.xaml.cs index 05087494..c4e40094 100644 --- a/v2rayN/v2rayN/App.xaml.cs +++ b/v2rayN/v2rayN/App.xaml.cs @@ -34,7 +34,6 @@ namespace v2rayN if (!rebootas && !bCreatedNew) { ProgramStarted.Set(); - Current.Shutdown(); Environment.Exit(0); return; } @@ -55,7 +54,6 @@ namespace v2rayN if (ConfigHandler.LoadConfig(ref _config) != 0) { UI.Show($"Loading GUI configuration file is abnormal,please restart the application{Environment.NewLine}加载GUI配置文件异常,请重启应用"); - Application.Current.Shutdown(); Environment.Exit(0); return; }