Skip to content

Commit c034794

Browse files
committed
Fix Growl not showing when window is not active
1 parent 876384e commit c034794

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

IPConfig/App.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ private static async void ShowUnhandledExceptionAsync(Exception exception, strin
166166

167167
string msg = sb.ToString();
168168

169+
// 窗口未处于活动状态可能导致 Growl 不显示。
170+
Current.MainWindow.Activate();
171+
169172
Growl.Ask(new GrowlInfo {
170173
Message = msg,
171174
ShowDateTime = true,

0 commit comments

Comments
 (0)