diff --git a/Bin/net40/SunnyUI.dll b/Bin/net40/SunnyUI.dll index eaa6f934..cc1ebdc5 100644 Binary files a/Bin/net40/SunnyUI.dll and b/Bin/net40/SunnyUI.dll differ diff --git a/Bin/net5.0-windows/SunnyUI.dll b/Bin/net5.0-windows/SunnyUI.dll index 9c87c931..365a4bad 100644 Binary files a/Bin/net5.0-windows/SunnyUI.dll and b/Bin/net5.0-windows/SunnyUI.dll differ diff --git a/Bin/netcoreapp3.1/SunnyUI.dll b/Bin/netcoreapp3.1/SunnyUI.dll index 78a31e19..bc7ab249 100644 Binary files a/Bin/netcoreapp3.1/SunnyUI.dll and b/Bin/netcoreapp3.1/SunnyUI.dll differ diff --git a/SunnyUI/Forms/UIFormService.cs b/SunnyUI/Forms/UIFormService.cs index 2dcdd363..233b0fb5 100644 --- a/SunnyUI/Forms/UIFormService.cs +++ b/SunnyUI/Forms/UIFormService.cs @@ -10,8 +10,8 @@ namespace Sunny.UI public static void ShowWaitForm(string desc = "系统正在处理中,请稍候...") { if (IsRun) return; - Instance.CreateForm(desc); IsRun = true; + Instance.CreateForm(desc); } public static void HideWaitForm() @@ -55,10 +55,13 @@ namespace Sunny.UI thread = new Thread(delegate () { form = new UIWaitForm(desc); - Application.Run(form); + if (IsRun) Application.Run(form); }); - thread.Start(); + if (IsRun) + thread.Start(); + else + CloseForm(); } private void CloseForm()