enhance: close #1390
This commit is contained in:
1 parent
10437a6c57
commit
994b86d743
2 files changed
+4
-1
No files matched your search
@@ -396,7 +396,7 @@ public class Growl : Control
|
|||||||
/// <param name="growlInfo"></param>
|
/// <param name="growlInfo"></param>
|
||||||
private static void Show(GrowlInfo growlInfo)
|
private static void Show(GrowlInfo growlInfo)
|
||||||
{
|
{
|
||||||
Application.Current.Dispatcher?.Invoke(
|
(Application.Current.Dispatcher ?? growlInfo.Dispatcher)?.Invoke(
|
||||||
#if NET40
|
#if NET40
|
||||||
new Action(
|
new Action(
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Media;
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Threading;
|
||||||
|
|
||||||
namespace HandyControl.Data;
|
namespace HandyControl.Data;
|
||||||
|
|
||||||
@@ -37,4 +38,6 @@ public class GrowlInfo
|
|||||||
public string Token { get; set; }
|
public string Token { get; set; }
|
||||||
|
|
||||||
public FlowDirection FlowDirection { get; set; }
|
public FlowDirection FlowDirection { get; set; }
|
||||||
|
|
||||||
|
public Dispatcher Dispatcher { get; set; }
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user