wenxiangchao
2026-11-02 fe2aa4880d5c9fd88088ad0ed81ebaca05629f5f
HMI.UI/Util/MsgBoxHelper.cs
@@ -2,6 +2,7 @@
using System.Windows;
using Panuon.WPF.UI.Configurations;
using HMI.Core.Util;
using System;
namespace HMI.UI.Util
{
@@ -74,7 +75,10 @@
                owner.Dispatcher.Invoke(() =>
                {
                    window = Window.GetWindow(owner) ?? Application.Current.MainWindow;
                    res = MessageBoxX.Show(window, message, caption, button, icon, defaultButton, setting, countdown);
                    window.Dispatcher.Invoke(() =>
                    {
                        res = MessageBoxX.Show(window, message, caption, button, icon, defaultButton, setting, countdown);
                    });
                });
            }
            else