From 068b7a3882c0f253cc467bfd88dba692913e8001 Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Sun, 9 May 2021 13:23:52 +0800 Subject: [PATCH] fixed #646 --- .../Controls/Growl/Growl.cs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Shared/HandyControl_Shared/Controls/Growl/Growl.cs b/src/Shared/HandyControl_Shared/Controls/Growl/Growl.cs index 733991b2..c8936d89 100644 --- a/src/Shared/HandyControl_Shared/Controls/Growl/Growl.cs +++ b/src/Shared/HandyControl_Shared/Controls/Growl/Growl.cs @@ -340,22 +340,22 @@ namespace HandyControl.Controls private static void ShowGlobal(GrowlInfo growlInfo) { - if (GrowlWindow == null) - { - GrowlWindow = new GrowlWindow(); - GrowlWindow.Show(); - InitGrowlPanel(GrowlWindow.GrowlPanel); - GrowlWindow.Init(); - } - - GrowlWindow.Show(true); - Application.Current.Dispatcher?.Invoke( #if NET40 new Action( #endif () => { + if (GrowlWindow == null) + { + GrowlWindow = new GrowlWindow(); + GrowlWindow.Show(); + InitGrowlPanel(GrowlWindow.GrowlPanel); + GrowlWindow.Init(); + } + + GrowlWindow.Show(true); + var ctl = new Growl { Message = growlInfo.Message,