We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7b37f5 commit 3671fc3Copy full SHA for 3671fc3
src/WinReform/WinReform/ActiveWindows/ActiveWindowsViewModel.cs
@@ -157,7 +157,7 @@ public void RefreshActiveWindows()
157
Task.Run(() =>
158
{
159
var result = _windowService.GetActiveWindows().ToList();
160
- Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Background, new Action(() => ActiveWindows.UpdateCollection(result)));
+ Application.Current?.Dispatcher.BeginInvoke(DispatcherPriority.Background, new Action(() => ActiveWindows.UpdateCollection(result)));
161
});
162
}
163
0 commit comments