alielie
2026-03-02 12e606635c42ea20f4b7c2bdda5204237a4b4c96
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();
                    });
                }
            });
        }