Merge pull request #518 from lwqwag/master
FatalGlobal not in dispather cann't render as expect
This commit is contained in:
1 file changed
+11
@@ -485,8 +485,19 @@ namespace HandyControl.Controls
|
|||||||
growlInfo.IconBrushKey = ResourceToken.PrimaryTextBrush;
|
growlInfo.IconBrushKey = ResourceToken.PrimaryTextBrush;
|
||||||
growlInfo.StaysOpen = true;
|
growlInfo.StaysOpen = true;
|
||||||
growlInfo.ShowCloseButton = false;
|
growlInfo.ShowCloseButton = false;
|
||||||
|
Application.Current.Dispatcher?.Invoke(
|
||||||
|
#if NET40
|
||||||
|
new Action(
|
||||||
|
#endif
|
||||||
|
() =>
|
||||||
|
{
|
||||||
if (GrowlPanel.ContextMenu != null) GrowlPanel.ContextMenu.Opacity = 0;
|
if (GrowlPanel.ContextMenu != null) GrowlPanel.ContextMenu.Opacity = 0;
|
||||||
}
|
}
|
||||||
|
#if NET40
|
||||||
|
)
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
growlInfo.IconKey ??= ResourceToken.FatalGeometry;
|
growlInfo.IconKey ??= ResourceToken.FatalGeometry;
|
||||||
|
|||||||
Reference in new issue
Block a user