From c1c3772a11b1f3fbad8846cc714120771d85fa53 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期四, 12 六月 2025 20:10:59 +0800
Subject: [PATCH] 新增SeqEditor
---
HMI.UI/Util/MsgBoxHelper.cs | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/HMI.UI/Util/MsgBoxHelper.cs b/HMI.UI/Util/MsgBoxHelper.cs
index 79174a2..18f2a30 100644
--- a/HMI.UI/Util/MsgBoxHelper.cs
+++ b/HMI.UI/Util/MsgBoxHelper.cs
@@ -74,7 +74,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
--
Gitblit v1.9.1