From 30d6e2cd6ce0702faaec73b7ffb59d9844fb6967 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 15 Apr 2013 11:10:12 -0400 Subject: made library scan a bit more conservative --- .../EntryPoints/NewItemNotifier.cs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'MediaBrowser.ServerApplication/EntryPoints') diff --git a/MediaBrowser.ServerApplication/EntryPoints/NewItemNotifier.cs b/MediaBrowser.ServerApplication/EntryPoints/NewItemNotifier.cs index 4a1f0ac74..ae898f0f9 100644 --- a/MediaBrowser.ServerApplication/EntryPoints/NewItemNotifier.cs +++ b/MediaBrowser.ServerApplication/EntryPoints/NewItemNotifier.cs @@ -109,7 +109,7 @@ namespace MediaBrowser.ServerApplication.EntryPoints } // Show the notification - if (newItems.Count == 1) + if (newItems.Count > 0) { Application.Current.Dispatcher.InvokeAsync(() => { @@ -122,19 +122,6 @@ namespace MediaBrowser.ServerApplication.EntryPoints }, PopupAnimation.Slide, 6000)); }); } - else if (newItems.Count > 1) - { - Application.Current.Dispatcher.InvokeAsync(() => - { - var window = (MainWindow)Application.Current.MainWindow; - - window.Dispatcher.InvokeAsync(() => window.MbTaskbarIcon.ShowCustomBalloon(new MultiItemUpdateNotification(_logger) - { - DataContext = newItems - - }, PopupAnimation.Slide, 6000)); - }); - } } /// -- cgit v1.2.3