alielie
2025-05-20 99df058a665ea04065a23e729ec79a2f23f79881
HMI.UI/MaskWindow.xaml.cs
@@ -50,9 +50,19 @@
            //}));
            Task.Run(() =>
            {
                // 暂停线程令UI完全展示
                if (delay > 0) Thread.Sleep(delay);
                action(this);
                try
                {
                    // 暂停线程令UI完全展示
                    if (delay > 0) Thread.Sleep(delay);
                    action(this);
                }
                finally
                {
                    Dispatcher.Invoke(() =>
                    {
                        this.Close();
                    });
                }
            });
        }