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().First(); window.Dispatcher.InvokeAsync(() => window.MbTaskbarIcon.ShowCustomBalloon(new ItemUpdateNotification(_logger) {