alielie
2025-11-25 006c98e5650b530e5220f279c1e803fefe69d40d
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