aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MediaBrowser.ServerApplication/EntryPoints/NewItemNotifier.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.ServerApplication/EntryPoints/NewItemNotifier.cs b/MediaBrowser.ServerApplication/EntryPoints/NewItemNotifier.cs
index bf4eb6e91..6bc6d5065 100644
--- a/MediaBrowser.ServerApplication/EntryPoints/NewItemNotifier.cs
+++ b/MediaBrowser.ServerApplication/EntryPoints/NewItemNotifier.cs
@@ -113,7 +113,7 @@ namespace MediaBrowser.ServerApplication.EntryPoints
{
Application.Current.Dispatcher.InvokeAsync(() =>
{
- var window = (MainWindow)Application.Current.MainWindow;
+ var window = Application.Current.Windows.OfType<MainWindow>().First();
window.Dispatcher.InvokeAsync(() => window.MbTaskbarIcon.ShowCustomBalloon(new ItemUpdateNotification(_logger)
{