mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2026-11-05 15:11:59 +08:00
Update save settings only when main window is closed
This commit is contained in:
1 parent
74ddb428ee
commit
d169de9a9e
7 files changed
+6
-16
No files matched your search
@@ -77,6 +77,7 @@ namespace GrasscutterTools
|
||||
MultiLanguage.SetDefaultLanguage(Settings.Default.DefaultLanguage);
|
||||
|
||||
Application.Run(new Forms.FormMain());
|
||||
Console.WriteLine("Program end.");
|
||||
}
|
||||
|
||||
#region - 全局异常处理 -
|
||||
@@ -84,12 +85,16 @@ namespace GrasscutterTools
|
||||
private static void Application_ThreadException(object sender, ThreadExceptionEventArgs e)
|
||||
{
|
||||
string str = GetExceptionMsg(e.Exception, e.ToString());
|
||||
Console.WriteLine("Application_ThreadException");
|
||||
Console.WriteLine(str);
|
||||
MessageBox.Show(str, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
|
||||
{
|
||||
string str = GetExceptionMsg(e.ExceptionObject as Exception, e.ToString());
|
||||
Console.WriteLine("CurrentDomain_UnhandledException");
|
||||
Console.WriteLine(str);
|
||||
MessageBox.Show(str, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user