Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Mar 26, 2024
1 parent ee285af commit 971aea5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions clashN/clashN/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ static App()
if (!bCreatedNew)
{
ProgramStarted.Set();
App.Current.Shutdown();
Environment.Exit(-1);
return;
}
Expand Down Expand Up @@ -65,7 +64,6 @@ private void Init()
if (ConfigProc.LoadConfig(ref _config) != 0)
{
UI.ShowWarning($"Loading GUI configuration file is abnormal,please restart the application{Environment.NewLine}加载GUI配置文件异常,请重启应用");
Application.Current.Shutdown();
Environment.Exit(0);
return;
}
Expand Down
3 changes: 2 additions & 1 deletion clashN/clashN/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using ReactiveUI;
using ReactiveUI.Fody.Helpers;
using Splat;
using System.Diagnostics;
using System.Drawing;
using System.Reactive;
using System.Reactive.Linq;
Expand Down Expand Up @@ -253,8 +254,8 @@ public void MyAppExit(bool blWindowsShutDown)
catch { }
finally
{
Application.Current.Shutdown();
Environment.Exit(0);
Process.GetCurrentProcess().Kill();
}
}

Expand Down

0 comments on commit 971aea5

Please sign in to comment.