This commit is contained in:
NaBian committed 2021-05-09 13:23:52 +08:00
1 parent c9355124d4
commit 068b7a3882
1 file changed
+6 -6
@@ -339,6 +339,12 @@ namespace HandyControl.Controls
} }
private static void ShowGlobal(GrowlInfo growlInfo) private static void ShowGlobal(GrowlInfo growlInfo)
{
Application.Current.Dispatcher?.Invoke(
#if NET40
new Action(
#endif
() =>
{ {
if (GrowlWindow == null) if (GrowlWindow == null)
{ {
@@ -350,12 +356,6 @@ namespace HandyControl.Controls
GrowlWindow.Show(true); GrowlWindow.Show(true);
Application.Current.Dispatcher?.Invoke(
#if NET40
new Action(
#endif
() =>
{
var ctl = new Growl var ctl = new Growl
{ {
Message = growlInfo.Message, Message = growlInfo.Message,